From 950dd4b0688dee3f7a90105a1225c8ba41123282 Mon Sep 17 00:00:00 2001 From: Teddy Date: Wed, 16 Apr 2014 18:51:07 +0800 Subject: pointer offest calculate --- ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ast.c') diff --git a/ast.c b/ast.c index c02ab41..866588f 100644 --- a/ast.c +++ b/ast.c @@ -400,9 +400,9 @@ char *cnode_debug_type_repr(CNode *ast) { } head += sprintf(head, "(%d:%d)", ast->loc.row, ast->loc.col); if (ast->ext.type) - sprintf(head, "->(var:%lx type:%lx ic:%d cv:%d)", + sprintf(head, "->(var:%lx type:%lx ic:%d cv:%d off:%d)", (size_t)ast->ext.var, (size_t)ast->ext.type, - ast->ext.is_const, ast->ext.const_val); + ast->ext.is_const, ast->ext.const_val, ast->ext.offest); } return buffer; } -- cgit v1.2.3