summaryrefslogtreecommitdiff
path: root/ext/Storable
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-03 23:37:17 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-03 23:37:17 +0000
commit425d70b4c4324ccafae8099527a1f9ab13640b5c (patch)
treef41a6c5d0e15d27cc9a028184b6d98d42e2cf3d0 /ext/Storable
parent5e931b6b27bc1bb6cc2bcce917cc8f887bf37d90 (diff)
downloadperl-425d70b4c4324ccafae8099527a1f9ab13640b5c.tar.gz
Various "cast to pointer from integer of different size"
picked up by gcc -Wall (in Tru64 where pointers are 64 bits wide but I32 (int) only 32 bits wide). WARNING: the classnum and tagnum changes in Storable.xs may not be wise, they may be breaking binary compatibility (in 64-bit platforms), asked Raphael Manfredi about the changes. p4raw-id: //depot/perl@10417
Diffstat (limited to 'ext/Storable')
-rw-r--r--ext/Storable/Storable.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Storable/Storable.xs b/ext/Storable/Storable.xs
index 542c2a54cd..4e2db1963b 100644
--- a/ext/Storable/Storable.xs
+++ b/ext/Storable/Storable.xs
@@ -278,8 +278,8 @@ typedef struct stcxt {
HV *hclass; /* which classnames have been seen, store time */
AV *aclass; /* which classnames have been seen, retrieve time */
HV *hook; /* cache for hook methods per class name */
- I32 tagnum; /* incremented at store time for each seen object */
- I32 classnum; /* incremented at store time for each seen classname */
+ IV tagnum; /* incremented at store time for each seen object */
+ IV classnum; /* incremented at store time for each seen classname */
int netorder; /* true if network order used */
int s_tainted; /* true if input source is tainted, at retrieve time */
int forgive_me; /* whether to be forgiving... */