mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 14:23:43 +00:00
Fix bitwise not for signed integers
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user