Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@3140 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
e354d269f6
commit
76e31df5f8
1 changed files with 2 additions and 2 deletions
|
@ -162,13 +162,13 @@ void ShiftExpr (struct ExprDesc* Expr)
|
||||||
goto Next;
|
goto Next;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we're shifting an integer or unsigned to the right, the
|
/* If we're shifting an integer or unsigned to the left, the
|
||||||
* lhs has a const address, and the shift count is larger than 8,
|
* lhs has a const address, and the shift count is larger than 8,
|
||||||
* we can load just the high byte as a char with the correct
|
* we can load just the high byte as a char with the correct
|
||||||
* signedness, and reduce the shift count by 8. If the remaining
|
* signedness, and reduce the shift count by 8. If the remaining
|
||||||
* shift count is zero, we're done.
|
* shift count is zero, we're done.
|
||||||
*/
|
*/
|
||||||
if (Tok == TOK_SHR &&
|
if (Tok == TOK_SHL &&
|
||||||
IsTypeInt (Expr->Type) &&
|
IsTypeInt (Expr->Type) &&
|
||||||
ED_IsLVal (Expr) &&
|
ED_IsLVal (Expr) &&
|
||||||
(ED_IsLocConst (Expr) || ED_IsLocStack (Expr)) &&
|
(ED_IsLocConst (Expr) || ED_IsLocStack (Expr)) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue