Bug 70971 - Signed/unsigned compiler warnings on windows

Patch from Emil Eklund.
pull/8/head
Behdad Esfahbod 11 years ago
parent 3d436d325e
commit 176fd17d02
  1. 8
      src/hb-buffer-serialize.cc
  2. 2
      src/hb-ot-map.cc

@ -146,9 +146,9 @@ _hb_buffer_serialize_glyphs_json (hb_buffer_t *buffer,
*p++ = '}';
if (buf_size > (p - b))
unsigned int l = p - b;
if (buf_size > l)
{
unsigned int l = p - b;
memcpy (buf, b, l);
buf += l;
buf_size -= l;
@ -208,9 +208,9 @@ _hb_buffer_serialize_glyphs_text (hb_buffer_t *buffer,
p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",%d", pos[i].y_advance));
}
if (buf_size > (p - b))
unsigned int l = p - b;
if (buf_size > l)
{
unsigned int l = p - b;
memcpy (buf, b, l);
buf += l;
buf_size -= l;

@ -181,7 +181,7 @@ hb_ot_map_builder_t::compile (hb_ot_map_t &m)
continue; /* Feature disabled, or not enough bits. */
bool found = false;
hb_bool_t found = false;
unsigned int feature_index[2];
for (unsigned int table_index = 0; table_index < 2; table_index++)
found |= hb_ot_layout_language_find_feature (face,

Loading…
Cancel
Save