git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 5d06f45c0f8c0cc819409e266780ae653af331e9
parent bd31258725ff587f56536c6b31e9fa128e2f38ef
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 13 Apr 2024 13:52:10 +0300

Merge pull request #607 from Morilli/fix-compiler-warning

Fix potential compiler warning on questionable code path
Diffstat:
MCore/gb.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/gb.c b/Core/gb.c @@ -1705,7 +1705,7 @@ static void GB_reset_internal(GB_gameboy_t *gb, bool quick) GB_update_clock_rate(gb); uint8_t rtc_section[GB_SECTION_SIZE(rtc)]; memcpy(rtc_section, GB_GET_SECTION(gb, rtc), sizeof(rtc_section)); - memset(gb, 0, (size_t)GB_GET_SECTION((GB_gameboy_t *) 0, unsaved)); + memset(gb, 0, GB_SECTION_OFFSET(unsaved)); memcpy(GB_GET_SECTION(gb, rtc), rtc_section, sizeof(rtc_section)); gb->model = model; gb->version = GB_STRUCT_VERSION;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.