From 6276f6e12f62cc20b976ff3373c9b16721ec7591 Mon Sep 17 00:00:00 2001 From: kalsprite Date: Thu, 6 Aug 2026 21:51:03 -0700 Subject: [PATCH] src/check_expr.cpp --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index c25de50dc..80c425f2b 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -4082,7 +4082,7 @@ gb_internal bool check_transmute(CheckerContext *c, Ast *node, Operand *o, Type big_int_shl_eq(&umax, &sz_in_bits); if (is_type_unsigned(src_t) && !is_type_unsigned(dst_t)) { - if (big_int_cmp(&v, &smax) >= 0) { + if (big_int_cmp(&v, &smax) > 0) { big_int_sub_eq(&v, &umax); } } else if (!is_type_unsigned(src_t) && is_type_unsigned(dst_t)) {