]> git.sur5r.net Git - cc65/blobdiff - libsrc/dbg/dbg.c
The spans do now contain the size of a span, no longer the end offset.
[cc65] / 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);
            }