]> git.sur5r.net Git - cc65/commitdiff
Small optimization
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 9 Sep 2005 17:30:28 +0000 (17:30 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 9 Sep 2005 17:30:28 +0000 (17:30 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3632 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/dbg/dbg.c

index 81f6b696f8bc5edf71c34789bd2592297e0ea434..c2ddb194bf3f235da67394817a1093ee65ca61ea 100644 (file)
@@ -1310,7 +1310,7 @@ static void SingleStep (char StepInto)
            /* Be sure not to set the breakpoint twice if this is a jump to
             * the following instruction.
             */
-           Offs = *(signed char*)(brk_pc+1);
+            Offs = ((signed char*)brk_pc)[1];
            if (Offs) {
                DbgSetTmpBreak (brk_pc + Offs + 2);
            }