summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-17 20:27:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-17 20:27:34 +0000
commitfc8f2f0bea7446191b123f94e63c729814407ba7 (patch)
tree54f64a190c073c48e3bb4291b9d0e037ac7be4cd /mg.c
parentb7dccc218b24a8ba0e0cd15ea0385ad8d3d5371f (diff)
downloadperl-fc8f2f0bea7446191b123f94e63c729814407ba7.tar.gz
(retracted by #12485)
KISS. p4raw-id: //depot/perl@12480
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mg.c b/mg.c
index 99bee0a6d9..d1e8721bd9 100644
--- a/mg.c
+++ b/mg.c
@@ -1964,12 +1964,10 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
STATUS_POSIX_SET(SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv));
break;
case '!':
-#define GETERRNO(sv) (SvIOK(sv) ? SvIVX(sv) : SvOK(sv) ? sv_2iv(sv) : 0)
#ifdef VMS
- SETERRNO(GETERRNO(sv),
- (SvIV(sv) == EVMSERR) ? 4 : vaxc$errno);
+ SETERRNO(0, (SvIV(sv) == EVMSERR) ? 4 : vaxc$errno);
#else
- SETERRNO(GETERRNO(sv), 0);
+ SETERRNO(SvIOK(sv) ? SvIVX(sv) : SvOK(sv) ? sv_2iv(sv) : 0, 0);
#endif
break;
case '<':