commit 79ec5a02875bb4af0dbcc186ffc03e693938db9a (tree) parent b61f1a9f7d06a352239a95cf42f2116f5bd44f4a Author: Andrew Kelley <superjoe30@gmail.com> Date: Sun, 12 Feb 2017 17:56:34 -0500 fix tokenization assertion failure on some float numbers See #258 Diffstat:
| M | src/tokenizer.cpp | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp @@ -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; }