harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 17b195626bb22c94cea9927e803dc9bb9afccfe3
parent 1811928ec40590bcbeaf897666399fc846106886
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 23 Dec 2020 12:08:40 -0500

check: test storage for binarithm validity

Diffstat:
Msrc/check.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -81,7 +81,8 @@ check_expr_binarithm(struct context *ctx, case BIN_RSHIFT: case BIN_TIMES: case BIN_BXOR: - assert(lvalue->result == rvalue->result); // TODO: Promotion + // TODO: Promotion + assert(lvalue->result->storage == rvalue->result->storage); expr->result = lvalue->result; break; // Logical arithmetic