diff options
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 1529010ca..6d00087e2 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1465,7 +1465,7 @@ void check_unary_expr(CheckerContext *c, Operand *o, Token op, AstNode *node) { return; } - o->value = exact_unary_operator_value(op.kind, o->value, precision); + o->value = exact_unary_operator_value(op.kind, o->value, precision, is_type_unsigned(type)); if (is_type_typed(type)) { if (node != nullptr) { |