Cosmetic
This commit is contained in:
parent
be74284673
commit
26bfcb64e4
|
@ -348,9 +348,8 @@ struct GDEF
|
||||||
|
|
||||||
inline bool sanitize (SANITIZE_ARG_DEF) {
|
inline bool sanitize (SANITIZE_ARG_DEF) {
|
||||||
TRACE_SANITIZE ();
|
TRACE_SANITIZE ();
|
||||||
if (!SANITIZE (version)) return false;
|
return SANITIZE (version) && likely (version.major == 1) &&
|
||||||
if (unlikely (version.major != 1)) return false;
|
SANITIZE_THIS2 (glyphClassDef, attachList) &&
|
||||||
return SANITIZE_THIS2 (glyphClassDef, attachList) &&
|
|
||||||
SANITIZE_THIS2 (ligCaretList, markAttachClassDef) &&
|
SANITIZE_THIS2 (ligCaretList, markAttachClassDef) &&
|
||||||
(version < 0x00010002 || SANITIZE_THIS (markGlyphSetsDef[0]));
|
(version < 0x00010002 || SANITIZE_THIS (markGlyphSetsDef[0]));
|
||||||
}
|
}
|
||||||
|
|
|
@ -913,9 +913,8 @@ struct GSUBGPOS
|
||||||
|
|
||||||
inline bool sanitize (SANITIZE_ARG_DEF) {
|
inline bool sanitize (SANITIZE_ARG_DEF) {
|
||||||
TRACE_SANITIZE ();
|
TRACE_SANITIZE ();
|
||||||
if (!SANITIZE (version)) return false;
|
return SANITIZE (version) && likely (version.major == 1)
|
||||||
if (unlikely (version.major != 1)) return false;
|
&& SANITIZE_THIS (scriptList)
|
||||||
return SANITIZE_THIS (scriptList)
|
|
||||||
&& SANITIZE_THIS (featureList)
|
&& SANITIZE_THIS (featureList)
|
||||||
&& SANITIZE_THIS (lookupList);
|
&& SANITIZE_THIS (lookupList);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue