diff options
Diffstat (limited to 'sys/cmd/cc/cc.c')
-rw-r--r-- | sys/cmd/cc/cc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/cmd/cc/cc.c b/sys/cmd/cc/cc.c index a25fd69..2dcf897 100644 --- a/sys/cmd/cc/cc.c +++ b/sys/cmd/cc/cc.c @@ -94,17 +94,15 @@ END: // ----------------------------------------------------------------------- // type interning -Type * +int type() { - Type *t; - if (C.type.len >= C.type.cap) { C.type.cap += 100; C.type.info = realloc(C.type.info, C.type.cap * sizeof(*C.type.info)); } - return C.type.info + C.type.len++; + return C.type.len++; } // ----------------------------------------------------------------------- |