Skip to content

Commit

Permalink
Fix clockCallback return type and parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Eggbertx committed Oct 21, 2024
1 parent ece2ddd commit c18d1fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/chip8.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ void stepOut() {

#endif

int iii;
void _OC8_FASTCALL doCycle() {
uchar x = 0; /* -X-- */
uchar y = 0; /* --Y- */
Expand Down
4 changes: 2 additions & 2 deletions src/io_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c18d1fa

Please sign in to comment.