summaryrefslogtreecommitdiff
path: root/hv_func.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2015-10-14 10:51:21 +1100
committerTony Cook <tony@develop-help.com>2015-10-14 10:51:21 +1100
commit25c1b134afb28e3391447584a4ccc05b5caa9922 (patch)
treee2c0588a692efc247f61010b3915c422df294e4f /hv_func.h
parentc2d4ebc6c9a49f99997e3438fc8288c7bdbeb2c0 (diff)
downloadperl-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hv_func.h b/hv_func.h
index ce60e53919..8866db909f 100644
--- a/hv_func.h
+++ b/hv_func.h
@@ -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