bug fixes after test-suite

This commit is contained in:
eck
1990-03-29 10:41:46 +00:00
parent fd80d596df
commit ed2516a57a
5 changed files with 28 additions and 9 deletions

View File

@@ -52,7 +52,10 @@ eval_field(expr, code)
register struct field *fd = leftop->ex_type->tp_field;
struct type *tp = leftop->ex_type->tp_up;
arith tmpvar = 0;
struct type *atype = tp->tp_unsigned ? uword_type : word_type;
struct type *atype = ( tp->tp_unsigned
&& fd->fd_width >= 8 * word_size)
? uword_type
: word_type;
/* First some assertions to be sure that the rest is legal */
ASSERT(atype->tp_size == word_size); /* make sure that C_loc() is legal */