Skip to content

Commit 2771301

Browse files
committed
sign check error message update
1 parent 4dd0048 commit 2771301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/check_expr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ gb_internal void check_shift(CheckerContext *c, Operand *x, Operand *y, Ast *nod
31133113
if (y->mode == Addressing_Constant) {
31143114
if (big_int_is_neg(&y->value.value_integer)) {
31153115
gbString y_str = expr_to_string(y->expr);
3116-
error(y->expr, "Shift amount '%s' must be positive", y_str);
3116+
error(y->expr, "Shift amount '%s' cannot be negative", y_str);
31173117
gb_string_free(y_str);
31183118
x->mode = Addressing_Invalid;
31193119
return;

0 commit comments

Comments
 (0)