summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-07-03 13:36:59 +0100
committerDavid Mitchell <davem@iabyn.com>2010-07-03 16:25:58 +0100
commit79a8d5295c08d08001ca69256d5a990d05ee1556 (patch)
treedfe5592a2494b41e6ae2650e2b5c44cc0efbab89 /pp_sort.c
parent5a8697a75658d7d8584bbfa20c013c177b3dbac3 (diff)
downloadperl-79a8d5295c08d08001ca69256d5a990d05ee1556.tar.gz
PL_amagic_generation doesn't show overload loaded
PL_amagic_generation is non-zero even without the presence of 'use overload', so don't bother using it as a short-cut test of whether we can skip AMAGIC processing
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sort.c b/pp_sort.c
index ed9c809117..f1ec82aec2 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1858,7 +1858,7 @@ S_sv_i_ncmp(pTHX_ SV *const a, SV *const b)
}
#define tryCALL_AMAGICbin(left,right,meth) \
- (PL_amagic_generation && (SvAMAGIC(left)||SvAMAGIC(right))) \
+ (SvAMAGIC(left)||SvAMAGIC(right)) \
? amagic_call(left, right, CAT2(meth,_amg), 0) \
: NULL;