]> git.sur5r.net Git - cc65/commitdiff
Fixed an error.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 7 Jul 2012 22:22:59 +0000 (22:22 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 7 Jul 2012 22:22:59 +0000 (22:22 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5772 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptshift.c

index 3b179539c495e36e104494cf2b65bb507a682a16..4205783f9fdd965d085c0e6d1538be9709baf05f 100644 (file)
@@ -412,7 +412,7 @@ unsigned OptShift3 (CodeSeg* S)
            !CS_RangeHasLabel (S, I, 2)                         &&
             L[2]->OPC == OP65_JSR                               &&
             (Shift = GetShift (L[2]->Arg)) != SHIFT_NONE        &&
-            SHIFT_TYPE (Shift) == SHIFT_TYPE_ASR                &&
+            SHIFT_DIR (Shift) == SHIFT_DIR_RIGHT                &&
             (Count = SHIFT_COUNT (Shift)) > 0                   &&
            !RegXUsed (S, I+3)) {