1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +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. ** 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 {