diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2007-12-25 14:00:46 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2007-12-25 14:00:46 +0000 |
commit | 00c3722ec9627c9b46b409cdf4db155198de3c3f (patch) | |
tree | b041422cc09aed9a7418161cbb277156e1e1bb12 /usr.bin/pcc/ccom | |
parent | 43d734907aff3b74cc5e3c465ffa94a88ffe67b1 (diff) |
Pull from master repo:
Set type to INT if it's still UNDEF upon return from typenode().
ok ragge@
Diffstat (limited to 'usr.bin/pcc/ccom')
-rw-r--r-- | usr.bin/pcc/ccom/pftn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/pcc/ccom/pftn.c b/usr.bin/pcc/ccom/pftn.c index a648525d508..739aae17069 100644 --- a/usr.bin/pcc/ccom/pftn.c +++ b/usr.bin/pcc/ccom/pftn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pftn.c,v 1.10 2007/12/22 22:56:31 stefan Exp $ */ +/* $OpenBSD: pftn.c,v 1.11 2007/12/25 14:00:45 stefan Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. @@ -1734,6 +1734,8 @@ typenode(NODE *p) p = (saved ? saved : block(TYPE, NIL, NIL, type, 0, 0)); p->n_qual = qual; p->n_lval = class; + if (BTYPE(p->n_type) == UNDEF) + MODTYPE(p->n_type, INT); return p; bad: uerror("illegal type combination"); |