From 7fdd6f36c8181115c60b781dc97b71107fb7da65 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 14 Jan 2019 23:07:35 -0500 Subject: s/%zu/%d ... (int)/ --- src/sdl/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sdl/main.c') diff --git a/src/sdl/main.c b/src/sdl/main.c index 7cbe68f..3a20720 100644 --- a/src/sdl/main.c +++ b/src/sdl/main.c @@ -29,7 +29,7 @@ log_moves( buf[ofs++] = SOK_DIR_TO_CHAR(ctx->moves[i].dir); } - SDL_Log("Solution (%zu moves): %s", ctx->num_moves - skip_moves, buf); + SDL_Log("Solution (%d moves): %s", (int) (ctx->num_moves - skip_moves), buf); } static TTF_Font * @@ -77,15 +77,15 @@ set_level( // load level if (!sok_ctx_set_level(ctx, draw_ctx->level->data)) { - die("Couldn't load level %zu", level_num); + die("Couldn't load level %d", (int) level_num); } // log level title SDL_Log( - "Loaded level \"%s: %s\" (#%zu)", + "Loaded level \"%s: %s\" (#%d)", draw_ctx->level->pack, draw_ctx->level->name, - level_num + (int) level_num ); } @@ -205,7 +205,7 @@ int main(int argc, char *argv[]) { case ACTION_RESET: // reset level if (!sok_ctx_set_level(&ctx, draw_ctx.level->data)) { - die("Couldn't load level %zu", level_num); + die("Couldn't load level %d", (int) level_num); } break; -- cgit v1.2.3