[patch] faster PM_GETRE
Doug MacEachern [Thu, 12 Jul 2001 10:13:27 +0000 (03:13 -0700)]
Message-ID: <Pine.LNX.4.21.0107121011530.28844-100000@mako.covalent.net>

p4raw-id: //depot/perl@11314

op.h

diff --git a/op.h b/op.h
index 2d95358..af0e983 100644 (file)
--- a/op.h
+++ b/op.h
@@ -250,7 +250,7 @@ struct pmop {
 };
 
 #ifdef USE_ITHREADS
-#define PM_GETRE(o)     ((REGEXP*)SvIV(PL_regex_pad[(o)->op_pmoffset]))
+#define PM_GETRE(o)     ((REGEXP*)SvIVX(PL_regex_pad[(o)->op_pmoffset]))
 #define PM_SETRE(o,r)   (sv_setiv(PL_regex_pad[(o)->op_pmoffset], (IV)r))
 #else
 #define PM_GETRE(o)     ((o)->op_pmregexp)