aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-09-10 22:15:06 +0200
committerGitHub <noreply@github.com>2024-09-10 22:15:06 +0200
commitfce7bcec493b4a53a101cbf41575e2a154caa902 (patch)
tree94b6d55c87788ab5779a7bac266382ce3c99a0ae /src/check_expr.cpp
parent036d7edda92c8d93c1295e4f2661152abe729bf1 (diff)
parent459de29a87bd400ea575e99d21297c6c288a2c35 (diff)
Merge branch 'master' into static_builds
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
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 = {};