be loaded as an int. This was not the case if the expression rhs was a char.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4382
b7a2c559-68d2-44c3-8de9-
860c34a00d81
* throw away the high byte anyway and may therefore load just the
* low byte.
*/
- if (ED_IsBitField (Expr) && Expr->BitOffs + Expr->BitWidth <= CHAR_BITS) {
- Flags |= CF_CHAR | CF_UNSIGNED;
+ if (ED_IsBitField (Expr)) {
+ Flags |= (Expr->BitOffs + Expr->BitWidth <= CHAR_BITS)? CF_CHAR : CF_INT;
+ Flags |= CF_UNSIGNED;
} else {
Flags |= TypeOf (Expr->Type);
}