aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-03-25 04:58:57 +0800
committerTeddy <ted.sybil@gmail.com>2014-03-25 04:58:57 +0800
commit9e43ffed22d5ba25fe545a48ac732591c346aabb (patch)
treee56c5d18e2441ef78a00bb54bb118872897229cc /ast.c
parent4f90efb9a08b697b7ef270a4d2ee067dc853f251 (diff)
wrong regex for char const
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";