diff options
| author | 2018-01-15 16:24:29 +0100 | |
|---|---|---|
| committer | 2018-01-15 16:24:29 +0100 | |
| commit | af6e0faf0a464d00b6ddc5d3526ab89bb635acca (patch) | |
| tree | eb7246d14fcee2e389dcb037648eaa59e635bffe | |
| parent | Merge pull request #15 from bsaleil/master (diff) | |
| download | yuzu-af6e0faf0a464d00b6ddc5d3526ab89bb635acca.tar.gz yuzu-af6e0faf0a464d00b6ddc5d3526ab89bb635acca.tar.xz yuzu-af6e0faf0a464d00b6ddc5d3526ab89bb635acca.zip | |
Fix some warnings
| -rw-r--r-- | externals/microprofile/microprofileui.h | 6 |
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) | |||
| 1991 | else | 1991 | else |
| 1992 | { | 1992 | { |
| 1993 | nIndex = nIndex-1; | 1993 | nIndex = nIndex-1; |
| 1994 | if(nIndex < UI.GroupMenuCount) | 1994 | if(static_cast<uint32_t>(nIndex) < UI.GroupMenuCount) |
| 1995 | { | 1995 | { |
| 1996 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; | 1996 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; |
| 1997 | static char buffer[MICROPROFILE_NAME_MAX_LEN+32]; | 1997 | static char buffer[MICROPROFILE_NAME_MAX_LEN+32]; |
| @@ -2134,7 +2134,7 @@ const char* MicroProfileUIMenuCustom(int nIndex, bool* bSelected) | |||
| 2134 | case 1: return "--"; | 2134 | case 1: return "--"; |
| 2135 | default: | 2135 | default: |
| 2136 | nIndex -= 2; | 2136 | nIndex -= 2; |
| 2137 | if(nIndex < UI.nCustomCount) | 2137 | if(static_cast<uint32_t>(nIndex) < UI.nCustomCount) |
| 2138 | { | 2138 | { |
| 2139 | return UI.Custom[nIndex].pName; | 2139 | return UI.Custom[nIndex].pName; |
| 2140 | } | 2140 | } |
| @@ -2184,7 +2184,7 @@ void MicroProfileUIClickGroups(int nIndex) | |||
| 2184 | else | 2184 | else |
| 2185 | { | 2185 | { |
| 2186 | nIndex -= 1; | 2186 | nIndex -= 1; |
| 2187 | if(nIndex < UI.GroupMenuCount) | 2187 | if(static_cast<uint32_t>(nIndex) < UI.GroupMenuCount) |
| 2188 | { | 2188 | { |
| 2189 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; | 2189 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; |
| 2190 | if(Item.nIsCategory) | 2190 | if(Item.nIsCategory) |