diff options
| author | gingerBill <bill@gingerbill.org> | 2019-08-23 10:24:18 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-08-23 10:24:18 +0100 |
| commit | 150d4e343ddd99eef1d921cdd494c108ac2e9a12 (patch) | |
| tree | 7358e62e6825293635b306d6c4967ac42a0e8717 /src/check_stmt.cpp | |
| parent | 4369298e9629fffa2bd86a1aa50bec13abd84180 (diff) | |
Fix `~(1 << x)` type inference bug
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index e2090688f..2787aa436 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -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; } |