Skip to content

Commit 0a4e7d9

Browse files
xfgustamellowcandle
authored andcommitted
Fix binary prefix parsing
1 parent f51d488 commit 0a4e7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ int parse_input(const char *input, uint64_t *val)
215215
if (tolower(input[0]) == 'b')
216216
base = 2;
217217
else if (input[0] == '0')
218-
if (tolower(input[1] == 'b'))
218+
if (tolower(input[1]) == 'b')
219219
base = 2;
220220
else if (input[1] == 'x' || input[1] == 'X')
221221
base = 16;

0 commit comments

Comments
 (0)