aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
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 c1feff9..1b930fc 100644
--- a/ast.c
+++ b/ast.c
@@ -249,7 +249,7 @@ char *cnode_debug_type_repr(CNode *ast) {
break;
case CHAR:
type = "char";
- aptr += sprintf(abuff, "%c", ast->rec.intval);
+ aptr += sprintf(abuff, "%s", ast->rec.strval);
break;
case STR:
type = "str";