From ae42e3b491389529be2a502db175e6d9196f48f5 Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 7 Jul 2012 19:09:23 +0000 Subject: [PATCH] Added a comment. git-svn-id: svn://svn.cc65.org/cc65/trunk@5769 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptshift.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cc65/coptshift.c b/src/cc65/coptshift.c index 6489ab1d3..95ad1bb4f 100644 --- a/src/cc65/coptshift.c +++ b/src/cc65/coptshift.c @@ -444,6 +444,11 @@ unsigned OptShift4 (CodeSeg* S) * dey * bpl L1 * rol a + * + * A negative shift count or one that is greater or equal than + * the bit width of the left operand (which is promoted to + * integer before the operation) causes undefined behaviour, so + * above transformation is safe. */ CodeLabel* L;