aboutsummaryrefslogtreecommitdiff
path: root/src/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-19 23:26:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-19 23:26:02 -0400
commitc19ec4c443af0648c827e771df634394a7ca7f07 (patch)
tree5936cfe8c64e081621d258f562d02a8e8b32cd4f /src/typecheck.c
parente552fc2afcf525d0fd7a3ffe137cc28a43f224a2 (diff)
Some pedantic fixes vetted against compiling on mac.
Diffstat (limited to 'src/typecheck.c')
-rw-r--r--src/typecheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/typecheck.c b/src/typecheck.c
index d99048ff..dc312cde 100644
--- a/src/typecheck.c
+++ b/src/typecheck.c
@@ -61,7 +61,7 @@ type_t *parse_type_ast(env_t *env, type_ast_t *ast)
code_err(item_type, "Lists can't have stack references because the list may outlive the stack frame.");
if (type_size(item_t) > LIST_MAX_STRIDE)
code_err(ast, "This list holds items that take up ", (uint64_t)type_size(item_t),
- " bytes, but the maximum supported size is ", LIST_MAX_STRIDE, " bytes. Consider using a list of pointers instead.");
+ " bytes, but the maximum supported size is ", (int64_t)LIST_MAX_STRIDE, " bytes. Consider using a list of pointers instead.");
return Type(ListType, .item_type=item_t);
}
case SetTypeAST: {
@@ -72,7 +72,7 @@ type_t *parse_type_ast(env_t *env, type_ast_t *ast)
code_err(item_type, "Sets can't have stack references because the list may outlive the stack frame.");
if (type_size(item_t) > LIST_MAX_STRIDE)
code_err(ast, "This set holds items that take up ", (uint64_t)type_size(item_t),
- " bytes, but the maximum supported size is ", LIST_MAX_STRIDE, " bytes. Consider using an set of pointers instead.");
+ " bytes, but the maximum supported size is ", (int64_t)LIST_MAX_STRIDE, " bytes. Consider using an set of pointers instead.");
return Type(SetType, .item_type=item_t);
}
case TableTypeAST: {