diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-09-10 04:27:16 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-09-10 15:19:12 +0200 |
| commit | 564c7821c59c0ea8244f281587920e42ce701009 (patch) | |
| tree | ada4bd67ef8b6e480305e71c94cfa87646aa69d6 /src | |
| parent | d783bca2979db5955885ee6b2a06f20f8a847582 (diff) | |
Allow ExactValue_Invalid in assert.fix-4225
Fixes #4225
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 6ab87da09..27ba2448e 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -3615,7 +3615,7 @@ gb_internal bool check_transmute(CheckerContext *c, Ast *node, Operand *o, Type if (is_type_integer(src_t) && is_type_integer(dst_t)) { if (types_have_same_internal_endian(src_t, dst_t)) { ExactValue src_v = exact_value_to_integer(o->value); - GB_ASSERT(src_v.kind == ExactValue_Integer); + GB_ASSERT(src_v.kind == ExactValue_Integer || src_v.kind == ExactValue_Invalid); BigInt v = src_v.value_integer; BigInt smax = {}; |