From c18d1fa049c1f7bfc94e94423965975aa3dd010d Mon Sep 17 00:00:00 2001 From: Eggbertx Date: Mon, 21 Oct 2024 12:58:35 -0700 Subject: [PATCH] Fix clockCallback return type and parameter --- src/chip8.c | 1 - src/io_sdl.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chip8.c b/src/chip8.c index 8d9fd56..176b881 100755 --- a/src/chip8.c +++ b/src/chip8.c @@ -136,7 +136,6 @@ void stepOut() { #endif -int iii; void _OC8_FASTCALL doCycle() { uchar x = 0; /* -X-- */ uchar y = 0; /* --Y- */ diff --git a/src/io_sdl.c b/src/io_sdl.c index 659baba..486318a 100755 --- a/src/io_sdl.c +++ b/src/io_sdl.c @@ -13,7 +13,7 @@ SDL_Texture *texture; SDL_Surface *surface; uchar clockReady = 0; -long clockCallback(long interval, void* param); +unsigned int clockCallback(unsigned int interval, void* param); uchar initScreen(void) { SDL_Init(SDL_INIT_TIMER|SDL_INIT_AUDIO|SDL_INIT_VIDEO|SDL_INIT_EVENTS); @@ -186,7 +186,7 @@ void cleanup(void) { SDL_Quit(); } -long clockCallback(long interval, void* param) { +unsigned int clockCallback(unsigned int interval, void* param) { clockReady = 1; return interval; }