aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-05-04 02:37:59 +0800
committerTeddy <[email protected]>2014-05-04 02:37:59 +0800
commit433521231784c6ce26900f88c382bee63cdd169b (patch)
tree99a61049300c73e7d5ab56c65c1776927efc206e /ast.c
parent3730b0fa4b526f5acab73f3f5483f6c044178d3d (diff)
resolve interval building issues in loops
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index b2c6676..959addf 100644
--- a/ast.c
+++ b/ast.c
@@ -401,7 +401,7 @@ char *cnode_debug_type_repr(CNode *ast) {
}
head += sprintf(head, "(%d:%d)", ast->loc.row, ast->loc.col);
if (ast->ext.type)
- sprintf(head, "->(var:%lx type:%lx ic:%d cv:%d off:%d)",
+ sprintf(head, "->(var:%lx type:%lx ic:%d cv:%ld off:%d)",
(size_t)ast->ext.var, (size_t)ast->ext.type,
ast->ext.is_const, ast->ext.const_val, ast->ext.offset);
}