diff options
author | David Mitchell <davem@iabyn.com> | 2017-06-12 16:26:02 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-06-12 21:11:02 +0100 |
commit | 290f44ead05a5718e4f391f298e4d75e601393e5 (patch) | |
tree | 7993a553c4b7f0e27c42b36b5a09f2e87514d155 /hv_func.h | |
parent | fa531f329e4f1fbd1d51dc1d40cc900089487939 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) ) ) |