diff options
author | Tony Cook <tony@develop-help.com> | 2015-10-14 10:51:21 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2015-10-14 10:51:21 +1100 |
commit | 25c1b134afb28e3391447584a4ccc05b5caa9922 (patch) | |
tree | e2c0588a692efc247f61010b3915c422df294e4f /hv_func.h | |
parent | c2d4ebc6c9a49f99997e3438fc8288c7bdbeb2c0 (diff) | |
download | perl-25c1b134afb28e3391447584a4ccc05b5caa9922.tar.gz |
[perl #126242] make the constant hash seeds unsigned char *
...to prevent warnings on most C compilers and build failures on C++
compilers for -DNO_HASH_SEED builds.
Diffstat (limited to 'hv_func.h')
-rw-r--r-- | hv_func.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -83,11 +83,11 @@ # if defined(USE_HASH_SEED) || defined(USE_HASH_SEED_EXPLICIT) # define PERL_HASH_SEED PL_hash_seed # elif PERL_HASH_SEED_BYTES == 4 -# define PERL_HASH_SEED "PeRl" +# define PERL_HASH_SEED ((const U8 *)"PeRl") # elif PERL_HASH_SEED_BYTES == 8 -# define PERL_HASH_SEED "PeRlHaSh" +# define PERL_HASH_SEED ((const U8 *)"PeRlHaSh") # elif PERL_HASH_SEED_BYTES == 16 -# define PERL_HASH_SEED "PeRlHaShhAcKpErl" +# define PERL_HASH_SEED ((const U8 *)"PeRlHaShhAcKpErl") # else # error "No PERL_HASH_SEED definition for " PERL_HASH_FUNC # endif |