[uniscribe] Fix a couple of VS warnings

This commit is contained in:
Behdad Esfahbod 2017-11-01 18:13:35 -06:00
parent 4c43a23bf4
commit 2c439210c9
1 changed files with 2 additions and 2 deletions

View File

@ -499,7 +499,7 @@ populate_log_font (LOGFONTW *lf,
unsigned int font_size) unsigned int font_size)
{ {
memset (lf, 0, sizeof (*lf)); memset (lf, 0, sizeof (*lf));
lf->lfHeight = -font_size; lf->lfHeight = - (int) font_size;
lf->lfCharSet = DEFAULT_CHARSET; lf->lfCharSet = DEFAULT_CHARSET;
hb_face_t *face = font->face; hb_face_t *face = font->face;
@ -858,7 +858,7 @@ retry:
unsigned int glyphs_offset = 0; unsigned int glyphs_offset = 0;
unsigned int glyphs_len; unsigned int glyphs_len;
bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction); bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
for (unsigned int i = 0; i < item_count; i++) for (int i = 0; i < item_count; i++)
{ {
unsigned int chars_offset = items[i].iCharPos; unsigned int chars_offset = items[i].iCharPos;
unsigned int item_chars_len = items[i + 1].iCharPos - chars_offset; unsigned int item_chars_len = items[i + 1].iCharPos - chars_offset;