aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386-asm.c')
-rw-r--r--i386-asm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i386-asm.c b/i386-asm.c
index dd8bb98..3d87e92 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -1478,7 +1478,8 @@ ST_FUNC void subst_asm_operand(CString *add_str,
tcc_error("internal compiler error");
/* choose register operand size */
- if ((sv->type.t & VT_BTYPE) == VT_BYTE)
+ if ((sv->type.t & VT_BTYPE) == VT_BYTE ||
+ (sv->type.t & VT_BTYPE) == VT_BOOL)
size = 1;
else if ((sv->type.t & VT_BTYPE) == VT_SHORT)
size = 2;