From ead8b54419b7ee83f79d990635b61115dbd69a80 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 12 Oct 2008 15:02:07 +0000 Subject: [PATCH] signedness fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2986 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/menus.cpp b/source/src/menus.cpp index aff2baca..c1ebd592 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -205,7 +205,7 @@ struct mitemtextinput : mitemtext int tw = VIRTW/4; if(selection) renderbg(x+w-tw, y-FONTH/6, tw, NULL); draw_text(text, x, y); - draw_text(input.buf, x+w-tw, y, 255, 255, 255, 255, selection ? (input.pos>=0 ? input.pos : strlen(input.buf)) : -1); + draw_text(input.buf, x+w-tw, y, 255, 255, 255, 255, selection ? (input.pos>=0 ? input.pos : (int)strlen(input.buf)) : -1); } virtual void focus(bool on)