diff options
| author | J08nY | 2017-04-06 23:15:50 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-06 23:15:50 +0200 |
| commit | fc64a68c7558fb5c508c234467aa7e77d33b163e (patch) | |
| tree | 459e10ab96d334d1ad6660066fbc8fc9248d5503 | |
| parent | d4a152b9daf665db62e3e30ca40f3cf94a1a30af (diff) | |
| download | ecgen-fc64a68c7558fb5c508c234467aa7e77d33b163e.tar.gz ecgen-fc64a68c7558fb5c508c234467aa7e77d33b163e.tar.zst ecgen-fc64a68c7558fb5c508c234467aa7e77d33b163e.zip | |
| -rw-r--r-- | src/io/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/input.c b/src/io/input.c index 49910f1..462ad1b 100644 --- a/src/io/input.c +++ b/src/io/input.c @@ -28,7 +28,7 @@ static GEN input_i(const char *prompt, long bits) { for (size_t i = 0, j = 0; (line[j] = line[i]); j += !isspace(line[i++])) ; - if (len <= 3 || (line[0] != '0' && (line[1] != 'x' || line[1] != 'X'))) { + if (len <= 3 || !(line[0] == '0' && (line[1] == 'x' || line[1] == 'X'))) { char *new_line = realloc(line, (size_t)(len + 2)); if (!new_line) { perror("Couldn't alloc."); |
