aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorjiang <30155751@qq.com>2014-05-16 12:15:00 +0800
committerjiang <30155751@qq.com>2014-05-16 12:15:00 +0800
commit52891b6ff680a03c966776b530cf94de9f831b07 (patch)
treed2b07f4d0a011859d1b20e98c3142bdc244ca6a6 /tccpp.c
parent5a514107c420bd8dd724c27d1e7e905571a6aba5 (diff)
downloadtinycc-52891b6ff680a03c966776b530cf94de9f831b07.tar.gz
tinycc-52891b6ff680a03c966776b530cf94de9f831b07.tar.bz2
fix push_macro, asked Tom to help me testfix push_macro
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccpp.c b/tccpp.c
index a384548..91c2aee 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -234,7 +234,7 @@ static TokenSym *tok_alloc_new(TokenSym **pts, const char *str, int len)
ts = tcc_malloc(sizeof(TokenSym) + len);
table_ident[i] = ts;
ts->tok = tok_ident++;
- ts->sym_define.data = tcc_malloc(sizeof(Sym**));
+ ts->sym_define.data = tcc_malloc(sizeof(Sym*));
ts->sym_define.off = 0;
ts->sym_define.data[0] = NULL;
ts->sym_define.size = 1;
@@ -1743,7 +1743,7 @@ pack_error:
size *= 2;
if (size >= MACRO_STACK_SIZE)
tcc_error("stack full");
- def->data = tcc_realloc(def->data, size*sizeof(Sym**));
+ def->data = tcc_realloc(def->data, size*sizeof(Sym*));
def->size = size;
}
def->data[def->off] = tmp;