diff options
author | Ori Bernstein <ori@eigenstate.org> | 2014-11-04 21:34:24 -0500 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2014-11-04 21:34:24 -0500 |
commit | 09af6b8f6597c29208b8725b4f67bd7ed6d45e85 (patch) | |
tree | bde47d08349e5512f71c36c5f7d39e19ffd0f4b0 /libstd/hashfuncs.myr | |
parent | 3460240b3a7654af5a994d305d8ab440b7fdfd54 (diff) | |
download | mc-09af6b8f6597c29208b8725b4f67bd7ed6d45e85.tar.gz |
Check for exhaustiveness in patterns.
Diffstat (limited to 'libstd/hashfuncs.myr')
-rw-r--r-- | libstd/hashfuncs.myr | 3 |
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 |