Fix OSX warnings + Examples/Apple+GL2 calls super reshape. (#4759, #1873)

This commit is contained in:
ocornut
2021-12-13 12:02:12 +01:00
parent 1b6b8602c1
commit d7350668d1
3 changed files with 3 additions and 3 deletions

View File

@ -3080,7 +3080,7 @@ void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end)
void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges)
{
for (; ranges[0]; ranges += 2)
for (unsigned int c = ranges[0]; c <= ranges[1] && c <= IM_UNICODE_CODEPOINT_MAX; c++)
for (unsigned int c = ranges[0]; c <= ranges[1] && c <= IM_UNICODE_CODEPOINT_MAX; c++) //-V560
AddChar((ImWchar)c);
}