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/draw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/sdl/draw.c') diff --git a/src/sdl/draw.c b/src/sdl/draw.c index e275038..99faa19 100644 --- a/src/sdl/draw.c +++ b/src/sdl/draw.c @@ -1,5 +1,6 @@ #include // bool #include // sinf() +#include // snprintf() #include "util.h" // warn()/die() #include "color.h" // set_color() #include "draw.h" @@ -188,10 +189,10 @@ draw_title_text( char buf[256]; snprintf( buf, sizeof(buf), - " %s: %s (#%zu) ", + " %s: %s (#%d) ", draw_ctx->level->pack, draw_ctx->level->name, - *draw_ctx->level_num + (int) *draw_ctx->level_num ); // draw text @@ -216,8 +217,8 @@ draw_moves_text( char buf[256]; snprintf( buf, sizeof(buf), - " Moves: %zu%s ", - draw_ctx->ctx->num_moves, + " Moves: %d%s ", + (int) draw_ctx->ctx->num_moves, sok_ctx_is_done(draw_ctx->ctx) ? " (Won!)" : "" ); -- cgit v1.2.3