Commit 79ec5a0287

Andrew Kelley <superjoe30@gmail.com>
2017-02-12 23:56:34
fix tokenization assertion failure on some float numbers
See #258
1 parent b61f1a9
Changed files (1)
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;
     }