1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00

Clarify comment about large shift

This is to avoid overflow on host platform.
This commit is contained in:
Jesse Rosenstock 2020-07-31 16:52:22 +02:00 committed by Oliver Schmidt
parent 847982c6bf
commit 9c70bd44a6

View File

@ -221,7 +221,7 @@ void LoadExpr (unsigned Flags, struct ExprDesc* Expr)
** the result of that.
*/
/* Avoid overly large shift. */
/* Avoid overly large shift on host platform. */
if (EndBit == sizeof (unsigned long) * CHAR_BIT) {
g_and (F, (~0UL << Expr->BitOffs));
} else {