summaryrefslogtreecommitdiff
path: root/hv_func.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-06-12 16:26:02 +0100
committerDavid Mitchell <davem@iabyn.com>2017-06-12 21:11:02 +0100
commit290f44ead05a5718e4f391f298e4d75e601393e5 (patch)
tree7993a553c4b7f0e27c42b36b5a09f2e87514d155 /hv_func.h
parentfa531f329e4f1fbd1d51dc1d40cc900089487939 (diff)
downloadperl-290f44ead05a5718e4f391f298e4d75e601393e5.tar.gz
keep PERL_HASH_SEED_BYTES as an int
adding a sizeof() expression was converting it into an unsigned long, which was triggering this warning in Hash-Util: Util.xs:99:45: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
Diffstat (limited to 'hv_func.h')
-rw-r--r--hv_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv_func.h b/hv_func.h
index 4be4214293..fdbb7538b0 100644
--- a/hv_func.h
+++ b/hv_func.h
@@ -83,7 +83,7 @@
#define _PERL_HASH_FUNC "SBOX32_WITH_" __PERL_HASH_FUNC
-#define _PERL_HASH_SEED_BYTES ( __PERL_HASH_SEED_BYTES + ( 3 * sizeof(U32) ) )
+#define _PERL_HASH_SEED_BYTES ( __PERL_HASH_SEED_BYTES + (int)( 3 * sizeof(U32) ) )
#define _PERL_HASH_STATE_BYTES \
( __PERL_HASH_STATE_BYTES + ( ( 1 + ( 256 * SBOX32_MAX_LEN ) ) * sizeof(U32) ) )