Skip to content

Commit

Permalink
Fix typo affecting 4 byte UTF-8 sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Jul 24, 2019
1 parent 7c865a5 commit 403c5c2
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.0"
version = "1.0.1"

[deps]

Expand Down
2 changes: 1 addition & 1 deletion src/MurmurHash3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ msk6(val) = u8(val & 0x3f)
@inline get_utf8_2(ch) = (0xc0 | dn6(ch), 0x80 | msk6(ch))
@inline get_utf8_3(ch) = (0xe0 | dn12(ch), 0x80 | msk6(dn6(ch)), 0x80 | msk6(ch))
@inline get_utf8_4(ch) = (0xf0 | dn18(ch), 0x80 | msk6(dn12(ch)),
0x80 | msk6(dn6(ch8)), 0x80 | msk6(ch))
0x80 | msk6(dn6(ch)), 0x80 | msk6(ch))

# Optimized in-place conversion to UTF-8 for hashing compatibly with isequal / String
@inline shift_n(v, n) = u64(v) << (((n & 7)%UInt)<<3)
Expand Down

2 comments on commit 403c5c2

@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/2264

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.1 -m "<description of version>" 403c5c29ff1cd43f25818ade9efa2213135e6868
git push origin v1.0.1

Please sign in to comment.