From: Nicholas Clark Date: Wed, 15 May 2002 23:06:20 +0000 (+0100) Subject: avoid 64 bit SEGV for debugging Storable X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1cf92b1237f767445000cccefc469360326cf837;p=p5sagit%2Fp5-mst-13.2.git avoid 64 bit SEGV for debugging Storable Message-ID: <20020515220619.GF365@Bagpuss.unfortu.net> p4raw-id: //depot/perl@16617 --- diff --git a/ext/Storable/Storable.xs b/ext/Storable/Storable.xs index 8b7c0cc..1ab7a4c 100644 --- a/ext/Storable/Storable.xs +++ b/ext/Storable/Storable.xs @@ -2954,7 +2954,7 @@ static int store_other(stcxt_t *cxt, SV *sv) len = strlen(buf); STORE_SCALAR(buf, len); - TRACEME(("ok (dummy \"%s\", length = %"IVdf")", buf, len)); + TRACEME(("ok (dummy \"%s\", length = %"IVdf")", buf, (IV) len)); return 0; } @@ -3784,7 +3784,7 @@ static SV *retrieve_hook(stcxt_t *cxt, char *cname) */ TRACEME(("calling STORABLE_thaw on %s at 0x%"UVxf" (%"IVdf" args)", - class, PTR2UV(sv), AvFILLp(av) + 1)); + class, PTR2UV(sv), (IV) AvFILLp(av) + 1)); rv = newRV(sv); (void) scalar_call(rv, hook, clone, av, G_SCALAR|G_DISCARD); @@ -4125,7 +4125,7 @@ static SV *retrieve_lscalar(stcxt_t *cxt, char *cname) SV *sv; RLEN(len); - TRACEME(("retrieve_lscalar (#%d), len = %"IVdf, cxt->tagnum, len)); + TRACEME(("retrieve_lscalar (#%d), len = %"IVdf, cxt->tagnum, (IV) len)); /* * Allocate an empty scalar of the suitable length. @@ -4150,7 +4150,7 @@ static SV *retrieve_lscalar(stcxt_t *cxt, char *cname) if (cxt->s_tainted) /* Is input source tainted? */ SvTAINT(sv); /* External data cannot be trusted */ - TRACEME(("large scalar len %"IVdf" '%s'", len, SvPVX(sv))); + TRACEME(("large scalar len %"IVdf" '%s'", (IV) len, SvPVX(sv))); TRACEME(("ok (retrieve_lscalar at 0x%"UVxf")", PTR2UV(sv))); return sv;