Commits

Atte Kojo committed 1e4b20c

Fixed a bug in string length calculation on 64-bit machines.

Comments (0)

Files changed (1)

memcached_native.c

 {
     CAMLparam1(data);
     unsigned int h = Murmurhash2(String_val(data),
-                                 Wosize_val(data) * sizeof(int), 0);
+                                 Wosize_val(data) * sizeof(long), 0)
     CAMLreturn(Long_val(h));
 }