From 9e43ffed22d5ba25fe545a48ac732591c346aabb Mon Sep 17 00:00:00 2001 From: Teddy Date: Tue, 25 Mar 2014 04:58:57 +0800 Subject: wrong regex for char const --- ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ast.c') 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"; -- cgit v1.2.3