From 58f5b341432358fc47e6bfecd248bce2cf9b464c Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 2 May 2018 07:13:04 +0000 Subject: [PATCH] Fix some printf warnings. git-svn-id: https://svn.eduke32.com/eduke32@6872 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/cache1d.cpp | 2 +- source/duke3d/src/menus.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/build/src/cache1d.cpp b/source/build/src/cache1d.cpp index 3b4be8faa..25be4ad87 100644 --- a/source/build/src/cache1d.cpp +++ b/source/build/src/cache1d.cpp @@ -322,7 +322,7 @@ static void reportandexit(const char *errormessage) int32_t j = 0; for (native_t i = 0; i < cacnum; i++) { - initprintf("%zu- ", i); + buildprint(i, "- "); if (cac[i].hand) initprintf("ptr: 0x%" PRIxPTR ", ", *cac[i].hand); diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index 1808c1c46..ff7f16444 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -2379,11 +2379,11 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin) if (g_oldSaveCnt) { - Bsprintf(tempbuf, "Delete %zu obsolete saves?\nThis action cannot be undone." + Bsprintf(tempbuf, "Delete %" PRIu64 " obsolete saves?\nThis action cannot be undone." #ifndef EDUKE32_ANDROID_MENU "\n(Y/N)" #endif - , g_oldSaveCnt); + , (uint64_t)g_oldSaveCnt); } else Bsprintf(tempbuf, "No obsolete saves found!");