diff options
| author | gingerBill <bill@gingerbill.org> | 2019-10-26 14:06:29 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-10-26 14:06:29 +0100 |
| commit | 7fae890ef9eb72f3131914f9af2469f9bfb1e59e (patch) | |
| tree | cc960719e7e1e4463e25c0dc2359dea221536c6a /src/exact_value.cpp | |
| parent | 94879ed14997c4d2745ddb669d08b34437ceff75 (diff) | |
Allow ranges for array-like compound literals
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index 95d04d93b..42b22c8ef 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -293,12 +293,12 @@ ExactValue exact_value_from_basic_literal(Token token) { case 'i': return exact_value_complex(0, imag); case 'j': return exact_value_quaternion(0, 0, imag, 0); case 'k': return exact_value_quaternion(0, 0, 0, imag); + default: GB_PANIC("Invalid imaginary basic literal"); } } case Token_Rune: { Rune r = GB_RUNE_INVALID; gb_utf8_decode(token.string.text, token.string.len, &r); - // gb_printf("%.*s rune: %d\n", LIT(token.string), r); return exact_value_i64(r); } default: |