Skip to content

Commit 9cbc2c5

Browse files
committed
segfault fixed (that I introduced, tbf)
1 parent c8bbb58 commit 9cbc2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,10 @@ static void parse_double_hexadecimal(FieldParseContext *ctx)
927927
if (neg) ch++;
928928
else if (*ch == '+') ch++;
929929

930-
const bool subnormal = ch[2] == '0';
930+
bool subnormal;
931931

932932
if (ch[0] == '0' && (ch[1] == 'x' || ch[1] == 'X') &&
933-
(ch[2] == '1' || (subnormal)) && ch[3] == '.') {
933+
(ch[2] == '1' || (subnormal = ch[2] == '0')) && ch[3] == '.') {
934934
ch += 4;
935935
uint64_t acc = 0;
936936
uint8_t digit;

0 commit comments

Comments
 (0)