inline bool sanitize (SANITIZE_ARG_DEF) {
TRACE_SANITIZE ();
- if (!SANITIZE (version)) return false;
- if (unlikely (version.major != 1)) return false;
- return SANITIZE_THIS2 (glyphClassDef, attachList) &&
+ return SANITIZE (version) && likely (version.major == 1) &&
+ SANITIZE_THIS2 (glyphClassDef, attachList) &&
SANITIZE_THIS2 (ligCaretList, markAttachClassDef) &&
(version < 0x00010002 || SANITIZE_THIS (markGlyphSetsDef[0]));
}
inline bool sanitize (SANITIZE_ARG_DEF) {
TRACE_SANITIZE ();
- if (!SANITIZE (version)) return false;
- if (unlikely (version.major != 1)) return false;
- return SANITIZE_THIS (scriptList)
- && SANITIZE_THIS (featureList)
+ return SANITIZE (version) && likely (version.major == 1)
+ && SANITIZE_THIS (scriptList)
+ && SANITIZE_THIS (featureList)
&& SANITIZE_THIS (lookupList);
}