ref: cec7bf1244ec1c3f4fbd8c6edb8cddd72d82ed92
parent: fef2165a21c9ed3c7c1e15ee82e5641b3d43c58f
parent: 0fd30aacbeb4f4f149e30b538e68c30f0f65c110
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Mar 8 05:05:53 EST 2016
Merge branch 'strliteq' of https://github.com/andrewchambers/mc
--- a/util/htab.c
+++ b/util/htab.c
@@ -265,7 +265,7 @@
return 0;
if (a->len != b->len)
return 0;
- return !memcmp(a, b, a->len);
+ return !memcmp(a->buf, b->buf, a->len);
}
ulong ptrhash(void *key) { return inthash((uintptr_t)key); }