diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-11 16:18:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-11 16:18:30 +0100 |
| commit | 63b572a0abd9fb3b64b4b70b3f94dbafb4642f57 (patch) | |
| tree | a89b2a7da5d31279ffc47406874839ac3f868bce /src/check_expr.cpp | |
| parent | e90e7d4af985b0b19e23f87e45b9add5aab98f69 (diff) | |
Clean up big int to LLVM integer code
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 2e552ee79..e3e73c391 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -2242,7 +2242,7 @@ void check_shift(CheckerContext *c, Operand *x, Operand *y, Ast *node, Type *typ } } - if (y->mode == Addressing_Constant && y->value.value_integer.sign) { + if (y->mode == Addressing_Constant && big_int_is_neg(&y->value.value_integer)) { gbString err_str = expr_to_string(y->expr); error(node, "Shift amount cannot be negative: '%s'", err_str); gb_string_free(err_str); |