shithub: mc

Download patch

ref: b23b5b3f9a003382d092089ce00104be3cfddd9a
parent: 89393cb48f76d4156105068fa9095d8b8f585b35
author: Ori Bernstein <ori@eigenstate.org>
date: Mon May 16 05:47:55 EDT 2016

Hash sizeof(ptr), not sizeof(*ptr)

--- a/lib/std/hashfuncs.myr
+++ b/lib/std/hashfuncs.myr
@@ -79,7 +79,7 @@
 	var x
 
 	x = &p castto(byte#)
-	-> murmurhash2(x[0:sizeof(@a)], Seed)
+	-> murmurhash2(x[0:sizeof(@a#)], Seed)
 }
 
 generic ptreq = {a, b