Skip to content

Commit

Permalink
Make date line pointer static with hashCode
Browse files Browse the repository at this point in the history
  • Loading branch information
jspricke committed Jul 11, 2021
1 parent 9d0a072 commit 35ada9c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ class Lines {
}
msg += " --"

return Line(++fakePointerCounter, LineSpec.Type.Other, tstamp, "--", msg,
val datePointer = MAX_C_POINTER_VALUE shl 2 + oldDate.hashCode() shl 32 + newDate.hashCode()
return Line(datePointer, LineSpec.Type.Other, tstamp, "--", msg,
nick = null, isVisible = true, isHighlighted = false,
LineSpec.DisplayAs.Unspecified, LineSpec.NotifyLevel.Low)
}
Expand Down

0 comments on commit 35ada9c

Please sign in to comment.