aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast.c b/src/ast.c
index 70b2d09..ca020f1 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -280,7 +280,7 @@ void ast_puts(Ast *p) {
switch(p->id) {
case AST_INT:
- printf("int %d", p->intval);
+ printf("int %ld", p->longval);
break;
case AST_SYM:
printf("%s", p->sym);