mirror of
https://github.com/cc65/cc65.git
synced 2024-07-09 01:28:58 +00:00
Fixed a bug in the return value of the sprintf and vsprintf functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1067 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b3f2a6b35c
commit
40a9055be8
@ -152,14 +152,10 @@ _vsprintf:
|
|||||||
tya
|
tya
|
||||||
sta (ptr1),y
|
sta (ptr1),y
|
||||||
|
|
||||||
; Return the number of bytes written. The carry is clear here because of the
|
; Return the number of bytes written.
|
||||||
; last addition which will never overflow for sane code.
|
|
||||||
|
|
||||||
lda outdesc ; ccount
|
lda outdesc ; ccount
|
||||||
ldx outdesc+1
|
ldx outdesc+1
|
||||||
adc #1 ; Account for terminator
|
rts
|
||||||
bcc @L9
|
|
||||||
inx
|
|
||||||
@L9: rts
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user