Subject: | HV * autobox_bindings |
Dear chocolateboy,
I reported 1047638 of the cpan-testers about autobox-2.02.
Although that was the PASS report, in fact the compilation was failed
since my compiler is MS VC++ unsupporting C99. As such, I modified just
a little as follows:
--- autobox.xs.org Wed Feb 20 14:39:28 2008
+++ autobox.xs Wed Feb 20 14:40:33 2008
@@ -55,6 +55,7 @@
OP* autobox_method_named(pTHX) {
SV * const sv = *(PL_stack_base + TOPMARK + 1);
+ HV * autobox_bindings;
/* if autobox is enabled (in scope) for this op and the receiver
isn't an object... */
if ((PL_op->op_flags & OPf_SPECIAL) && !(SvOBJECT(SvROK(sv) ?
SvRV(sv) : sv))) {
@@ -62,7 +63,7 @@
mg_get(sv);
/* this is the "bindings hash" that maps datatypes to package
names */
- HV * autobox_bindings = (HV *)(PTABLE_fetch(AUTOBOX_OP_MAP,
PL_op));
+ autobox_bindings = (HV *)(PTABLE_fetch(AUTOBOX_OP_MAP, PL_op));
if (autobox_bindings) {
const char * reftype; /* autobox_bindings key */
Regards,
Taro Nishino