From 0cfa3314ee2740cd94cf7064cc79fdea7b1e0dde Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 7 Sep 2020 18:51:49 +0200 Subject: replay: divide by bits-per-byte Bits / Bytes-per-Word misses the step of also dividing by Bits-per-Byte, which we need in order for this to make sense. Reported-by: Riobard Zhan Signed-off-by: Jason A. Donenfeld --- replay/replay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'replay') diff --git a/replay/replay.go b/replay/replay.go index e5c7391..85647f5 100644 --- a/replay/replay.go +++ b/replay/replay.go @@ -26,7 +26,7 @@ const ( ) const ( - BacktrackWords = CounterBitsTotal / _WordSize + BacktrackWords = CounterBitsTotal / 8 / _WordSize ) func minUint64(a uint64, b uint64) uint64 { -- cgit v1.2.3-59-g8ed1b