[repacker] add HB_FALLTRHOUGH.

pull/3763/head
Garret Rieger 2 years ago
parent 6a5e2cb2f8
commit 9578c44ea2
  1. 10
      src/graph/pairpos-graph.hh

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

Loading…
Cancel
Save