aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index 6bbc176..b07eca8 100644
--- a/ast.c
+++ b/ast.c
@@ -306,7 +306,7 @@ char *cnode_debug_type_repr(CNode *ast) {
case '~': type = "~"; break;
case '!': type = "!"; break;
case KW_SIZEOF: type = "sizeof"; break;
- case EXP_POSTFIX: type = "pofix"; break;
+ case EXP_POSTFIX: type = "postfix"; break;
case POSTFIX_ARR: type = "arr"; break;
case POSTFIX_CALL: type = "call"; break;
case POSTFIX_DOT: type = "dot"; break;
@@ -367,7 +367,7 @@ char *cnode_debug_type_repr(CNode *ast) {
assert(type);
}
if (aptr == abuff)
- sprintf(buffer, "%s(%d,%d)", type,
+ sprintf(buffer, "%s(%d:%d)", type,
ast->loc.row, ast->loc.col);
else
{