mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
sign check error message update
This commit is contained in:
+1
-1
@@ -3113,7 +3113,7 @@ gb_internal void check_shift(CheckerContext *c, Operand *x, Operand *y, Ast *nod
|
|||||||
if (y->mode == Addressing_Constant) {
|
if (y->mode == Addressing_Constant) {
|
||||||
if (big_int_is_neg(&y->value.value_integer)) {
|
if (big_int_is_neg(&y->value.value_integer)) {
|
||||||
gbString y_str = expr_to_string(y->expr);
|
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);
|
gb_string_free(y_str);
|
||||||
x->mode = Addressing_Invalid;
|
x->mode = Addressing_Invalid;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user