Skip to content

Commit

Permalink
Merge pull request #104 from ccawley2011/patch-2
Browse files Browse the repository at this point in the history
Fix warning due to RTC_CYCLES cast
  • Loading branch information
deltabeard authored May 30, 2024
2 parents 54a5a07 + 04dd54a commit 30ed7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peanut_gb.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
#define VERTICAL_SYNC (DMG_CLOCK_FREQ/SCREEN_REFRESH_CYCLES)

/* Real Time Clock is locked to 1Hz. */
#define RTC_CYCLES ((unsigned long)DMG_CLOCK_FREQ)
#define RTC_CYCLES ((uint_fast32_t)DMG_CLOCK_FREQ)

/* SERIAL SC register masks. */
#define SERIAL_SC_TX_START 0x80
Expand Down

0 comments on commit 30ed7ad

Please sign in to comment.