Skip to content

Commit

Permalink
Fix 64x2 array length
Browse files Browse the repository at this point in the history
  • Loading branch information
wltsmrz committed Nov 15, 2020
1 parent f6f6ec1 commit e71a5d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Carp bindings for murmurhash3

```clojure
(load "https://github.com/wltsmrz/carp_murmurhash3@v0.3.0")
(load "https://github.com/wltsmrz/carp_murmurhash3@v0.3.1")

(defn-do main []
; 32 bit hash, returns uint32
Expand Down
2 changes: 1 addition & 1 deletion src/carp_murmurhash3.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Array murmur3_32x4(const Array* key, int seed) {
}

Array murmur3_64x2(const Array* key, int seed) {
Array out = { .len = 4, .capacity = 4, .data = (uint64_t*)malloc(2 * sizeof(uint64_t)) };
Array out = { .len = 2, .capacity = 2, .data = (uint64_t*)malloc(2 * sizeof(uint64_t)) };
MurmurHash3_x64_128(key->data, key->len, seed, out.data);
return out;
}
Expand Down

0 comments on commit e71a5d6

Please sign in to comment.