From: cuz Date: Sat, 22 Jul 2000 18:26:31 +0000 (+0000) Subject: Replace a return value of 0 by 1 as expected by the C standard. X-Git-Tag: V2.12.0~3328 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa41731700a0524ad30bcd2908f802fb96950450;p=cc65 Replace a return value of 0 by 1 as expected by the C standard. git-svn-id: svn://svn.cc65.org/cc65/trunk@189 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/longjmp.s b/libsrc/common/longjmp.s index 6f74f7331..5941fbfae 100644 --- a/libsrc/common/longjmp.s +++ b/libsrc/common/longjmp.s @@ -11,11 +11,15 @@ _longjmp: sta ptr2 ; Save retval stx ptr2+1 - jsr popax ; get buf + ora ptr2+1 ; Check for 0 + bne @L1 + lda #1 ; 0 is illegal according to the standard... + sta ptr2 ; ... and must be replaced by 1 +@L1: jsr popax ; get buf sta ptr1 stx ptr1+1 ldy #0 - + ; Get the old parameter stack lda (ptr1),y