From cdba5d44c28a97ab8d9298a3bef60fcbd0845000 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Mon, 29 Mar 2021 14:23:59 -0700 Subject: [PATCH] [subset] fix incorrect handling of return value in check_success in the error case. --- src/hb-serialize.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index 87aafe0e2..e05fa15d0 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -161,7 +161,7 @@ struct hb_serialize_context_t hb_serialize_error_t err_type = HB_SERIALIZE_ERROR_OTHER) { return successful () - && (success || err (err_type)); + && (success || !err (err_type)); } template