Skip to content

Commit

Permalink
Fixed bytecode compilation of boolean types
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Oct 10, 2023
1 parent b29f47a commit cb10c27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backends/bytecode/outbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,9 @@ BCCompileMemOpExEx(BCIRBuffer *irbuf,AST *node,BCContext context, enum MemOpKind
default: ERROR(node,"Can't handle unsigned type with size %d",size); break;
}
} break;
case AST_INTTYPE: {
case AST_INTTYPE:
case AST_SIGNED_BOOLTYPE:
case AST_UNS_BOOLTYPE: {
int size = type->left->d.ival;
switch (size) {
// sign-extend is generated for these
Expand Down

0 comments on commit cb10c27

Please sign in to comment.