Skip to content

Commit

Permalink
Merge pull request #4 from JuliaString/fix32
Browse files Browse the repository at this point in the history
Fix mismatch with C version for mmhash32
  • Loading branch information
ScottPJones authored Jan 25, 2020
2 parents 6d97432 + 0f7fee3 commit 6a7d733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ keywords = ["Strings", "Hashing"]
license = "MIT"
name = "MurmurHash3"
uuid = "b10b62ed-fbae-5ea5-b934-abaf0477b71d"
version = "1.0.2"
version = "1.0.3"

[deps]

Expand Down
2 changes: 1 addition & 1 deletion src/MurmurHash3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function mmhash32(len, pnt, seed::UInt32)
res = len & 3
if res != 0
v = unsafe_load(pnt) & ifelse(res==1, 0x000ff, ifelse(res==2, 0x0ffff, 0xffffff))
h1 = xor(h1, rotl15(v) * d1) * d2
h1 = xor(h1, rotl15(v * d1) * d2)
end
fmix(xor(h1, u32(len)))
end
Expand Down

2 comments on commit 6a7d733

@ScottPJones
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/8446

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.3 -m "<description of version>" 6a7d7333956d022ed980656d8905d8de4a386bc5
git push origin v1.0.3

Please sign in to comment.