Skip to content

Commit

Permalink
Do not shadow result var. Bump to v0.1.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
boydgreenfield committed Apr 30, 2015
1 parent e239eda commit 62fb9dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion murmur.babel → murmur.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Package]
name = "murmur3"
version = "0.1.2"
version = "0.1.3"
author = "Nick Boyd Greenfield"
description = "Simple Murmurhash3 wrapper (for strings only at the moment). MurmurHash code is by Austin Appleby and in the public domain."
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion murmur3.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ proc raw_murmur_hash(key: cstring, len: int, seed: uint32, out_hashes: var Murmu
proc murmur_hash*(key: string, seed: uint32 = 0'u32): MurmurHashes =
## Only implemented for strings at the moment. Returns an array of
## two 64-bit integers
var result: MurmurHashes = [0'i64, 0'i64]
result = [0'i64, 0'i64]
raw_murmur_hash(key = key, len = key.len, seed = seed, out_hashes = result)
return result

Expand Down

0 comments on commit 62fb9dd

Please sign in to comment.