summaryrefslogtreecommitdiff
path: root/libstd/hashfuncs.myr
diff options
context:
space:
mode:
Diffstat (limited to 'libstd/hashfuncs.myr')
-rw-r--r--libstd/hashfuncs.myr3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstd/hashfuncs.myr b/libstd/hashfuncs.myr
index 49aa0e5..8edb439 100644
--- a/libstd/hashfuncs.myr
+++ b/libstd/hashfuncs.myr
@@ -1,3 +1,4 @@
+use "die.use"
use "sleq.use"
use "types.use"
@@ -78,6 +79,8 @@ const murmurhash2 = {data, seed
h ^= (data[0] castto(uint32))
| 1:
h ^= (data[0] castto(uint32))
+ | 0: /* nothing */
+ | _: die("0 < len < 4 must be true")
;;
h *= m