From 3e8c80a3d3367b94b380052c05a7e986239e68b3 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sun, 30 Jul 2017 04:27:44 +0000 Subject: [PATCH] Fix a warning. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@6406 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index 1bc7cdaa8..47aec2ed9 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -4466,7 +4466,7 @@ static int32_t M_RunMenu_Menu(Menu_t *cm, MenuMenu_t *menu, MenuEntry_t *current Bsprintf(tempbuf, "%.2f", *object->variable); break; case DisplayTypePercent: - Bsprintf(tempbuf, "%d%%", Blrintf(*object->variable * 100.f / onehundredpercent)); + Bsprintf(tempbuf, "%ld%%", lrintf(*object->variable * 100.f / onehundredpercent)); break; case DisplayTypeNormalizedDecimal: Bsprintf(tempbuf, "%.2f", *object->variable / onehundredpercent);