Subject: | [PATCH] autobox broken in bleadperl |
bleadperl is a bit more strict with the use of various macros to access
SV's and, when compiled with debugging turned on, will blow up. The
following patch fixes autobox on bleadperl.
--- autobox.xs.old 2006-11-06 21:41:19.000000000 -0600
+++ autobox.xs 2006-11-06 21:40:56.000000000 -0600
@@ -58,7 +58,7 @@
OP* autobox_method_named(pTHX) {
dSP;
SV * meth = cSVOP_sv;
- U32 hash = SvUVX(meth);
+ U32 hash = PTR2UV(meth);
SV * sv;
GV * gv = NULL;
HV * stash;