From 94f7a263228a120754ca31600cabb15de0652501 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 9 May 2022 15:29:14 -0600 Subject: [PATCH] [cff-common] Fix get_size() for Null object The special-casing didn't make sense. --- src/hb-ot-cff-common.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index e9a62bf5d..be6187d72 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -265,7 +265,6 @@ struct CFFIndex unsigned int get_size () const { - if (this == &Null (CFFIndex)) return 0; if (count) return min_size + offSize.static_size + offset_array_size () + (offset_at (count) - 1); return min_size; /* empty CFFIndex contains count only */