Small fixes to deal with warnings about comparing signed and unsigned ints

This commit is contained in:
Stefan Arentz 2016-12-27 11:36:38 -05:00
parent 04ee3ab615
commit 2c2cea17dc
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ struct mem_t;
#define EWM_DSK_SECTOR_SIZE 256
struct ewm_dsk_track_t {
size_t length;
int length;
uint8_t *data;
};

View File

@ -513,7 +513,7 @@ int ewm_two_main(int argc, char **argv) {
char *drive1 = NULL;
char *drive2 = NULL;
bool color = false;
int fps = EWM_TWO_FPS_DEFAULT;
uint32_t fps = EWM_TWO_FPS_DEFAULT;
struct ewm_memory_option_t *extra_memory = NULL;
int ch;
@ -611,8 +611,8 @@ int ewm_two_main(int argc, char **argv) {
SDL_StartTextInput();
Uint32 ticks = SDL_GetTicks();
int phase = 1;
uint32_t ticks = SDL_GetTicks();
uint32_t phase = 1;
while (true) {
if (!ewm_two_poll_event(two, window)) {