Skip to content

Commit

Permalink
apply(Int) should also discard lsb
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed Nov 6, 2024
1 parent bd9bc13 commit dd8033f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/Hash.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ object PositionHash:
opaque type Hash = Int
object Hash:
val size = 3
def apply(value: Int): Hash = value & 0x00ff_ffff
def apply(value: Int): Hash = value >>> 8
def apply(situation: Situation): Hash = hashSituation(situation) >>> 8

private def hashSituation(situation: Situation): Int =
Expand Down

0 comments on commit dd8033f

Please sign in to comment.