From 9c70bd44a6fecf99aefe888f95e0645b82324b24 Mon Sep 17 00:00:00 2001 From: Jesse Rosenstock Date: Fri, 31 Jul 2020 16:52:22 +0200 Subject: [PATCH] Clarify comment about large shift This is to avoid overflow on host platform. --- src/cc65/loadexpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/loadexpr.c b/src/cc65/loadexpr.c index 394e0a562..15be997df 100644 --- a/src/cc65/loadexpr.c +++ b/src/cc65/loadexpr.c @@ -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 {