mirror of
https://github.com/cc65/cc65.git
synced 2024-06-26 20:29:34 +00:00
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
This commit is contained in:
parent
2503a31938
commit
fa41731700
|
@ -11,7 +11,11 @@
|
||||||
_longjmp:
|
_longjmp:
|
||||||
sta ptr2 ; Save retval
|
sta ptr2 ; Save retval
|
||||||
stx ptr2+1
|
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
|
sta ptr1
|
||||||
stx ptr1+1
|
stx ptr1+1
|
||||||
ldy #0
|
ldy #0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user