Skip to content

Commit

Permalink
Fix MAX_CYCLES to not overflow to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Sep 19, 2024
1 parent 91a8293 commit 7a53bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyboy/core/mb.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ from pyboy.utils cimport IntIOInterface, WindowEvent

cdef Logger logger

cdef int MAX_CYCLES
cdef int64_t MAX_CYCLES
cdef uint16_t STAT, LY, LYC
cdef short VBLANK, LCDC, TIMER, SERIAL, HIGHTOLOW
cdef int INTR_VBLANK, INTR_LCDC, INTR_TIMER, INTR_SERIAL, INTR_HIGHTOLOW
Expand Down
2 changes: 1 addition & 1 deletion pyboy/core/mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

logger = pyboy.logging.get_logger(__name__)

MAX_CYCLES = 1 << 32
MAX_CYCLES = 1 << 16


class Motherboard:
Expand Down

0 comments on commit 7a53bb0

Please sign in to comment.