mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
Add break after digit_value check in TokenizeStateCharCode
This commit is contained in:
1 parent
e09c05f689
commit
87901baa28
1 file changed
+1
@@ -1097,6 +1097,7 @@ void tokenize(Buf *buf, Tokenization *out) {
|
||||
uint32_t digit_value = get_digit_value(c);
|
||||
if (digit_value >= t.radix) {
|
||||
tokenize_error(&t, "invalid digit: '%c'", c);
|
||||
break;
|
||||
}
|
||||
t.char_code *= t.radix;
|
||||
t.char_code += digit_value;
|
||||
|
||||
Reference in new issue
Block a user