public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37fd03b
)
fixed problem in sizeof()
author
ceriel
<none@none>
Mon, 6 Feb 1989 19:06:55 +0000
(19:06 +0000)
committer
ceriel
<none@none>
Mon, 6 Feb 1989 19:06:55 +0000
(19:06 +0000)
lang/cem/cemcom/ch7mon.c
patch
|
blob
|
history
diff --git
a/lang/cem/cemcom/ch7mon.c
b/lang/cem/cemcom/ch7mon.c
index
acdf50e
..
bfcec36
100644
(file)
--- a/
lang/cem/cemcom/ch7mon.c
+++ b/
lang/cem/cemcom/ch7mon.c
@@
-148,7
+148,7
@@
ch7mon(oper, expp)
if (ISNAME(*expp) && (*expp)->VL_IDF->id_def->df_formal_array)
warning("sizeof formal array %s is sizeof pointer!",
(*expp)->VL_IDF->id_text);
- expr = intexpr((*expp)->ex_
type == string_type
?
+ expr = intexpr((*expp)->ex_
class == String
?
(arith)((*expp)->SG_LEN) :
size_of_type((*expp)->ex_type, "object"),
INT);