fix the rollover function

patch bump
This commit is contained in:
2026-03-28 11:52:58 +00:00
parent d7b73e773a
commit 6e00ee014c
2 changed files with 6 additions and 7 deletions

View File

@@ -147,7 +147,4 @@ def deep_merge(dict1, dict2):
def bump_framecounter(framecounter: int) -> int:
"""Increment framecounter with rollover at 0xFFFFFFFF."""
if framecounter > 0xFFFFFFFF:
return 0
else:
return framecounter + 1
return (framecounter + 1) & 0xFFFFFFFF