Fix ~(1 << x) type inference bug

This commit is contained in:
gingerBill
2019-08-23 10:24:18 +01:00
parent 4369298e96
commit 150d4e343d
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -1168,7 +1168,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
be->right = as->rhs[0];
check_expr(ctx, &lhs, as->lhs[0]);
check_binary_expr(ctx, &rhs, &binary_expr, true);
check_binary_expr(ctx, &rhs, &binary_expr, nullptr, true);
if (rhs.mode == Addressing_Invalid) {
return;
}