revised the type checking of expr in "switch (expr)"

This commit is contained in:
erikb
1986-05-28 08:40:06 +00:00
parent e08808d5bc
commit a504ee7e09
2 changed files with 14 additions and 4 deletions

View File

@@ -252,6 +252,9 @@ init()
pa_type = long_type;
else
fatal("pointer size incompatible with any integral size");
if (int_size != word_size)
fatal("int_size and word_size are not equal");
if (short_size > int_size || int_size > long_size)
fatal("sizes of short/int/long decreasing");