mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Make !x be an untyped boolean
This commit is contained in:
@@ -1688,6 +1688,8 @@ gb_internal bool check_unary_op(CheckerContext *c, Operand *o, Token op) {
|
|||||||
if (is_type_integer(type)) {
|
if (is_type_integer(type)) {
|
||||||
error_line("\tSuggestion: Did you mean to use the bitwise not operator '~'?\n");
|
error_line("\tSuggestion: Did you mean to use the bitwise not operator '~'?\n");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
o->type = t_untyped_bool;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user