mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Bump to 0.3.7. Fixes issue with bitoperations on booleans.
This commit is contained in:
@@ -3277,6 +3277,11 @@ void gencontext_emit_binary(GenContext *c, BEValue *be_value, Expr *expr, BEValu
|
||||
UNREACHABLE
|
||||
}
|
||||
assert(val);
|
||||
if (lhs.type == type_bool)
|
||||
{
|
||||
llvm_value_set_bool(be_value, val);
|
||||
return;
|
||||
}
|
||||
llvm_value_set(be_value, val, expr->type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user