summaryrefslogtreecommitdiff
path: root/externals/microprofile/microprofileui.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-15 12:56:16 -0500
committerGitHub <noreply@github.com>2018-01-15 12:56:16 -0500
commit054d3e5fc3bdfffa35166b4554b79e110a50b69a (patch)
tree72013db427160f5f250d101e6f6a46ef54f3a178 /externals/microprofile/microprofileui.h
parent325f72acebd9ab7dd246f77ce7fbc2584104d00d (diff)
parenta4f5ccbf0a834fa231ff584ad333a58be71f058f (diff)
Merge pull request #20 from Andrix44/fixes
Various fixes
Diffstat (limited to 'externals/microprofile/microprofileui.h')
-rw-r--r--externals/microprofile/microprofileui.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/microprofile/microprofileui.h b/externals/microprofile/microprofileui.h
index 7670fec5d..ddaebe55b 100644
--- a/externals/microprofile/microprofileui.h
+++ b/externals/microprofile/microprofileui.h
@@ -1991,7 +1991,7 @@ const char* MicroProfileUIMenuGroups(int nIndex, bool* bSelected)
else
{
nIndex = nIndex-1;
- if(nIndex < UI.GroupMenuCount)
+ if(static_cast<uint32_t>(nIndex) < UI.GroupMenuCount)
{
MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex];
static char buffer[MICROPROFILE_NAME_MAX_LEN+32];
@@ -2134,7 +2134,7 @@ const char* MicroProfileUIMenuCustom(int nIndex, bool* bSelected)
case 1: return "--";
default:
nIndex -= 2;
- if(nIndex < UI.nCustomCount)
+ if(static_cast<uint32_t>(nIndex) < UI.nCustomCount)
{
return UI.Custom[nIndex].pName;
}
@@ -2184,7 +2184,7 @@ void MicroProfileUIClickGroups(int nIndex)
else
{
nIndex -= 1;
- if(nIndex < UI.GroupMenuCount)
+ if(static_cast<uint32_t>(nIndex) < UI.GroupMenuCount)
{
MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex];
if(Item.nIsCategory)