aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorAirtz <johan.bouriaud@gmail.com>2025-06-22 16:51:44 +0200
committerAirtz <johan.bouriaud@gmail.com>2025-06-22 16:51:44 +0200
commit277130111e941d30d73a3566e178c7f893d03113 (patch)
tree82fd3434d3d5b57e6ec0eb3cfa6592209acb7278 /src/check_expr.cpp
parent4dd004892206583f6872e44f895c0566fc68ba31 (diff)
sign check error message update
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 7cf4ef83a..3c981d462 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3113,7 +3113,7 @@ gb_internal void check_shift(CheckerContext *c, Operand *x, Operand *y, Ast *nod
if (y->mode == Addressing_Constant) {
if (big_int_is_neg(&y->value.value_integer)) {
gbString y_str = expr_to_string(y->expr);
- error(y->expr, "Shift amount '%s' must be positive", y_str);
+ error(y->expr, "Shift amount '%s' cannot be negative", y_str);
gb_string_free(y_str);
x->mode = Addressing_Invalid;
return;