提交 48382e2f 编写于 作者: B Behdad Esfahbod

Minor

上级 c4613714
...@@ -871,16 +871,16 @@ struct Coverage ...@@ -871,16 +871,16 @@ struct Coverage
inline void init (const Coverage &c_) { inline void init (const Coverage &c_) {
format = c_.u.format; format = c_.u.format;
switch (format) { switch (format) {
case 1: return u.format1.init (c_.u.format1); case 1: u.format1.init (c_.u.format1); return;
case 2: return u.format2.init (c_.u.format2); case 2: u.format2.init (c_.u.format2); return;
default:return; default: return;
} }
} }
inline bool more (void) { inline bool more (void) {
switch (format) { switch (format) {
case 1: return u.format1.more (); case 1: return u.format1.more ();
case 2: return u.format2.more (); case 2: return u.format2.more ();
default:return true; default:return false;
} }
} }
inline void next (void) { inline void next (void) {
...@@ -894,14 +894,14 @@ struct Coverage ...@@ -894,14 +894,14 @@ struct Coverage
switch (format) { switch (format) {
case 1: return u.format1.get_glyph (); case 1: return u.format1.get_glyph ();
case 2: return u.format2.get_glyph (); case 2: return u.format2.get_glyph ();
default:return true; default:return 0;
} }
} }
inline uint16_t get_coverage (void) { inline uint16_t get_coverage (void) {
switch (format) { switch (format) {
case 1: return u.format1.get_coverage (); case 1: return u.format1.get_coverage ();
case 2: return u.format2.get_coverage (); case 2: return u.format2.get_coverage ();
default:return true; default:return -1;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册