提交 2c439210 编写于 作者: B Behdad Esfahbod

[uniscribe] Fix a couple of VS warnings

上级 4c43a23b
......@@ -499,7 +499,7 @@ populate_log_font (LOGFONTW *lf,
unsigned int font_size)
{
memset (lf, 0, sizeof (*lf));
lf->lfHeight = -font_size;
lf->lfHeight = - (int) font_size;
lf->lfCharSet = DEFAULT_CHARSET;
hb_face_t *face = font->face;
......@@ -858,7 +858,7 @@ retry:
unsigned int glyphs_offset = 0;
unsigned int glyphs_len;
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 item_chars_len = items[i + 1].iCharPos - chars_offset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册