summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-09-01 12:52:32 +0100
committerDavid Mitchell <davem@iabyn.com>2010-09-01 12:52:32 +0100
commitc895a371d39dea7f20c053ad6dd1ef63feec4bcb (patch)
tree029f90995ef72261ba42cbb248e2a7e7a8394dff
parent00ab59c97654127a1c2030c6a43ca89059e64ac6 (diff)
downloadperl-c895a371d39dea7f20c053ad6dd1ef63feec4bcb.tar.gz
fix some 64-bit casts under DEBUG_LEAKING_SCALARS
-rw-r--r--sv.c2
-rw-r--r--sv.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 5c464609a4..cd40d7737d 100644
--- a/sv.c
+++ b/sv.c
@@ -12266,7 +12266,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_parser = NULL;
Zero(&PL_debug_pad, 1, struct perl_debug_pad);
# ifdef DEBUG_LEAKING_SCALARS
- PL_sv_serial = (((U32)my_perl >> 2) & 0xfff) * 1000000;
+ PL_sv_serial = (((UV)my_perl >> 2) & 0xfff) * 1000000;
# endif
#else /* !DEBUGGING */
Zero(my_perl, 1, PerlInterpreter);
diff --git a/sv.h b/sv.h
index 5819ee42f5..a96c6f57b6 100644
--- a/sv.h
+++ b/sv.h
@@ -117,7 +117,7 @@ struct STRUCT_SV { /* struct sv { */
PERL_BITFIELD32 sv_debug_optype:9; /* the type of OP that allocated us */
PERL_BITFIELD32 sv_debug_inpad:1; /* was allocated in a pad for an OP */
PERL_BITFIELD32 sv_debug_line:16; /* the line where we were allocated */
- U32 sv_debug_serial; /* serial number of sv allocation */
+ UV sv_debug_serial; /* serial number of sv allocation */
char * sv_debug_file; /* the file where we were allocated */
SV * sv_debug_parent; /* what we were cloned from (ithreads)*/
#endif