aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index f31bcf4..fe8e63b 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -333,7 +333,7 @@ type2llvm(struct cgctx ctx, type_t t)
}
if (t.size == 0)
return LLVMIntPtrTypeInContext(ctx.ctx, ctx.td);
- assert((unsigned)t.size * 8 <= UINT8_MAX);
+ assert((unsigned)t.size * 8 <= 128);
return LLVMIntTypeInContext(ctx.ctx, t.size * 8);
default:
__builtin_unreachable();