Skip to content

Commit cb10c27

Browse files
committed
Fixed bytecode compilation of boolean types
1 parent b29f47a commit cb10c27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backends/bytecode/outbc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,9 @@ BCCompileMemOpExEx(BCIRBuffer *irbuf,AST *node,BCContext context, enum MemOpKind
824824
default: ERROR(node,"Can't handle unsigned type with size %d",size); break;
825825
}
826826
} break;
827-
case AST_INTTYPE: {
827+
case AST_INTTYPE:
828+
case AST_SIGNED_BOOLTYPE:
829+
case AST_UNS_BOOLTYPE: {
828830
int size = type->left->d.ival;
829831
switch (size) {
830832
// sign-extend is generated for these

0 commit comments

Comments
 (0)