[subset] invert err() return value. Undo previous change to check_success.

This commit is contained in:
Garret Rieger 2021-03-29 14:34:24 -07:00
parent a804a0c903
commit 9a3537e5f6
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ struct hb_serialize_context_t
hb_serialize_error_t err_type = HB_SERIALIZE_ERROR_OTHER) hb_serialize_error_t err_type = HB_SERIALIZE_ERROR_OTHER)
{ {
return successful () return successful ()
&& (success || !err (err_type)); && (success || err (err_type));
} }
template <typename T1, typename T2> template <typename T1, typename T2>
@ -442,7 +442,7 @@ struct hb_serialize_context_t
bool err (hb_serialize_error_t err_type) bool err (hb_serialize_error_t err_type)
{ {
return bool ((errors = (errors | err_type))); return !bool ((errors = (errors | err_type)));
} }
template <typename Type> template <typename Type>