Skip to content

Commit e8d4eae

Browse files
committed
WIP fix Dumper.xs for perls before 5.17.0
1 parent 9dae004 commit e8d4eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/Data-Dumper/Dumper.xs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1392,9 +1392,9 @@ DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv,
13921392
# if !defined(PL_vtbl_vstring) && PERL_VERSION_LT(5,17,0)
13931393
SV * const vecsv = sv_newmortal();
13941394
# if PERL_VERSION_LT(5,10,0)
1395-
scan_vstring(mg->mg_ptr, vecsv);
1395+
scan_vstring(vstr_pv, vecsv);
13961396
# else
1397-
scan_vstring(mg->mg_ptr, mg->mg_ptr + mg->mg_len, vecsv);
1397+
scan_vstring(vstr_pv, vstr_pv + vstr_len, vecsv);
13981398
# endif
13991399
if (!sv_eq(vecsv, val)) goto integer_came_from_string;
14001400
# endif

0 commit comments

Comments
 (0)