From ef4a2e667da2b1486f62bda828450b3b46772f85 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 3 Jun 2010 21:26:52 +0000 Subject: [PATCH] Call __seterrno instead of assigning to _errno and save a few bytes. git-svn-id: svn://svn.cc65.org/cc65/trunk@4701 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/signal.s | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libsrc/common/signal.s b/libsrc/common/signal.s index 5d2b7ebc1..9327ca89c 100644 --- a/libsrc/common/signal.s +++ b/libsrc/common/signal.s @@ -61,9 +61,7 @@ __sig_ign: invalidsig: lda #EINVAL ; A = 0 - sta __errno+1 + jsr __seterrno ; Returns 0 in A tax ; A/X = 0 __sig_dfl: rts -- 2.39.5