提交 1a2a4a00 编写于 作者: B Behdad Esfahbod

Fix warning and build issues

As reported by Jonathan Kew on the list.
上级 a5e39fed
......@@ -136,7 +136,7 @@ struct _hb_set_t
elt_t elts[ELTS]; /* 8kb */
ASSERT_STATIC (sizeof (elt_t) * 8 == BITS);
ASSERT_STATIC (sizeof (elts) * 8 > MAX_G);
ASSERT_STATIC (sizeof (elt_t) * 8 * ELTS > MAX_G);
};
......
......@@ -124,10 +124,11 @@ main (int argc, char **argv)
const LangSys &langsys = n_langsys == -1
? script.get_default_lang_sys ()
: script.get_lang_sys (n_langsys);
printf (n_langsys == -1
? " Default Language System\n"
: " Language System %2d of %2d: %.4s\n", n_langsys, num_langsys,
(const char *)script.get_lang_sys_tag (n_langsys));
if (n_langsys == -1)
printf (" Default Language System\n");
else
printf (" Language System %2d of %2d: %.4s\n", n_langsys, num_langsys,
(const char *)script.get_lang_sys_tag (n_langsys));
if (langsys.get_required_feature_index () == Index::NOT_FOUND_INDEX)
printf (" No required feature\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册