From 45df8ca20b0b7b36ba7b669b334ba5316d129718 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 18 Feb 2022 13:02:48 -0800 Subject: [PATCH] Use a hex constant. --- internal/eventlog/cursor/cursor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/eventlog/cursor/cursor.go b/internal/eventlog/cursor/cursor.go index 9e17ceb45..215c79789 100644 --- a/internal/eventlog/cursor/cursor.go +++ b/internal/eventlog/cursor/cursor.go @@ -37,7 +37,7 @@ func (s *Source) nextCounter() int64 { func (s *Source) Cursor() Cursor { return Cursor{ timestamp: uint64(s.timeIndex()), - sequence: uint16(s.nextCounter() & 65535), + sequence: uint16(s.nextCounter() & 0xffff), } }