fix tokenization assertion failure on some float numbers

See #258
This commit is contained in:
Andrew Kelley committed 2017-02-12 17:56:34 -05:00
1 parent b61f1a9f7d
commit 79ec5a0287
1 file changed
+1 -1
+1 -1
View File
@@ -293,7 +293,7 @@ static void end_float_token(Tokenize *t) {
t->cur_tok->data.num_lit.overflow = true;
return;
}
assert(str_end == buf_ptr(t->buf) + t->cur_tok->end_pos);
assert(str_end <= buf_ptr(t->buf) + t->cur_tok->end_pos);
return;
}