add unlikely to error handling
This commit is contained in:
parent
b61f74f69a
commit
6ce8d10b45
|
@ -1093,7 +1093,7 @@ struct cff1
|
||||||
CFF1FontDict_Interpreter font_interp;
|
CFF1FontDict_Interpreter font_interp;
|
||||||
font_interp.env.init (fontDictStr);
|
font_interp.env.init (fontDictStr);
|
||||||
font = fontDicts.push ();
|
font = fontDicts.push ();
|
||||||
if (font == &Crap(CFF1FontDictValues)) { fini (); return; }
|
if (unlikely (font == &Crap(CFF1FontDictValues))) { fini (); return; }
|
||||||
font->init ();
|
font->init ();
|
||||||
if (unlikely (!font_interp.interpret (*font))) { fini (); return; }
|
if (unlikely (!font_interp.interpret (*font))) { fini (); return; }
|
||||||
PRIVDICTVAL *priv = &privateDicts[i];
|
PRIVDICTVAL *priv = &privateDicts[i];
|
||||||
|
|
|
@ -486,7 +486,7 @@ struct cff2
|
||||||
CFF2FontDict_Interpreter font_interp;
|
CFF2FontDict_Interpreter font_interp;
|
||||||
font_interp.env.init (fontDictStr);
|
font_interp.env.init (fontDictStr);
|
||||||
font = fontDicts.push ();
|
font = fontDicts.push ();
|
||||||
if (font == &Crap(CFF2FontDictValues)) { fini (); return; }
|
if (unlikely (font == &Crap(CFF2FontDictValues))) { fini (); return; }
|
||||||
font->init ();
|
font->init ();
|
||||||
if (unlikely (!font_interp.interpret (*font))) { fini (); return; }
|
if (unlikely (!font_interp.interpret (*font))) { fini (); return; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue