Warning fixes for 64-bit architectures

This commit is contained in:
ocornut
2015-01-20 01:01:25 +01:00
parent 53f4fd38e4
commit b0eac255ca
2 changed files with 3 additions and 3 deletions

View File

@ -6532,7 +6532,7 @@ bool ImFontAtlas::Build()
// Setup ranges
int glyph_count = 0;
size_t glyph_ranges_count = 0;
int glyph_ranges_count = 0;
for (const ImWchar* in_range = data.GlyphRanges; in_range[0] && in_range[1]; in_range += 2)
{
glyph_count += (in_range[1] - in_range[0]) + 1;
@ -6541,7 +6541,7 @@ bool ImFontAtlas::Build()
data.Ranges = buf_ranges + buf_ranges_n;
data.RangesCount = glyph_ranges_count;
buf_ranges_n += glyph_ranges_count;
for (size_t i = 0; i < glyph_ranges_count; i++)
for (int i = 0; i < glyph_ranges_count; i++)
{
const ImWchar* in_range = &data.GlyphRanges[i * 2];
stbtt_pack_range& range = data.Ranges[i];