Skip to content

Commit

Permalink
Fix issues with bad magic number translation
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed May 25, 2018
1 parent 92484fc commit 2048ae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jumper.ex
Expand Up @@ -28,7 +28,7 @@ defmodule Jumper do
@jump 1 <<< 31

# magic number use for jumping
@mage 0x27BB2EE687B0B000
@mage 0x27BB2EE687B0B0FD

# a 64 bit mask for wrapping
@mask 0xFFFFFFFFFFFFFFFF
Expand Down
2 changes: 1 addition & 1 deletion test/jumper_test.exs
Expand Up @@ -23,7 +23,7 @@ defmodule JumperTest do
end

test "slot(0xA9993E364706816ABA3E25717850C26C9CD0D89D, 5)" do
assert Jumper.slot(0xA9993E364706816ABA3E25717850C26C9CD0D89D, 5) == 5
assert Jumper.slot(0xA9993E364706816ABA3E25717850C26C9CD0D89D, 5) == 2
end

test "negative buckets" do
Expand Down

0 comments on commit 2048ae8

Please sign in to comment.