summaryrefslogtreecommitdiff
path: root/ext/ByteLoader
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-07-31 19:46:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-31 19:46:14 +0000
commit2431d1a8b08d9439dfd88cbfe40fc021749b2412 (patch)
treede7a7b4fce3d6e339fa5c3b5b1bf95cfda8dfbfe /ext/ByteLoader
parent6f14f0894bac4d44067b4f4dfec13e183cb176e6 (diff)
downloadperl-2431d1a8b08d9439dfd88cbfe40fc021749b2412.tar.gz
(retracted by #20390)
p4raw-id: //depot/perl@20385
Diffstat (limited to 'ext/ByteLoader')
-rw-r--r--ext/ByteLoader/bytecode.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/ByteLoader/bytecode.h b/ext/ByteLoader/bytecode.h
index bd62b2848c..8ef6d383ee 100644
--- a/ext/ByteLoader/bytecode.h
+++ b/ext/ByteLoader/bytecode.h
@@ -172,10 +172,8 @@ typedef char *pvindex;
#define BSET_newsv(sv, arg) \
STMT_START { \
- sv = (arg == SVt_PVAV ? (SV*)newAV() : \
- arg == SVt_PVHV ? (SV*)newHV() : \
- NEWSV(666,0)); \
- SvUPGRADE(sv, arg); \
+ sv = NEWSV(0,0)); \
+ SvUPGRADE(sv, (arg)); \
} STMT_END
#define BSET_newsvx(sv, arg) STMT_START { \
BSET_newsv(sv, arg & SVTYPEMASK); \