mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Clarify comment about large shift
This is to avoid overflow on host platform.
This commit is contained in:
parent
847982c6bf
commit
9c70bd44a6
@ -221,7 +221,7 @@ void LoadExpr (unsigned Flags, struct ExprDesc* Expr)
|
|||||||
** the result of that.
|
** the result of that.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Avoid overly large shift. */
|
/* Avoid overly large shift on host platform. */
|
||||||
if (EndBit == sizeof (unsigned long) * CHAR_BIT) {
|
if (EndBit == sizeof (unsigned long) * CHAR_BIT) {
|
||||||
g_and (F, (~0UL << Expr->BitOffs));
|
g_and (F, (~0UL << Expr->BitOffs));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user