[repacker] add HB_FALLTRHOUGH.

This commit is contained in:
Garret Rieger 2022-07-29 21:58:24 +00:00
parent 6a5e2cb2f8
commit 9578c44ea2
1 changed files with 6 additions and 4 deletions

View File

@ -265,8 +265,8 @@ struct PairPos : public OT::Layout::GPOS_impl::PairPos
case 2:
return ((PairPosFormat2*)(&u.format2))->split_subtables (c, this_index);
#ifndef HB_NO_BORING_EXPANSION
case 3:
case 4:
case 3: HB_FALLTHROUGH;
case 4: HB_FALLTHROUGH;
// Don't split 24bit PairPos's.
#endif
default:
@ -284,8 +284,10 @@ struct PairPos : public OT::Layout::GPOS_impl::PairPos
return ((PairPosFormat1*)(&u.format1))->sanitize (vertex);
case 2:
return ((PairPosFormat2*)(&u.format2))->sanitize (vertex);
case 3:
case 4:
#ifndef HB_NO_BORING_EXPANSION
case 3: HB_FALLTHROUGH;
case 4: HB_FALLTHROUGH;
#endif
default:
// We don't handle format 3 and 4 here.
return false;