From dce9e5e622b94aaf8ba7e81dd6e09a0cead0c51f Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Mon, 1 Apr 2019 20:55:02 -0700 Subject: [PATCH] fix get_start_tuple, get_end_tuple --- src/hb-ot-var-gvar-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index a5b1a07e6..e32229ac4 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -182,9 +182,9 @@ struct TupleVarHeader const Tuple &get_peak_tuple () const { return StructAfter (tupleIndex); } const Tuple &get_start_tuple (unsigned int axis_count) const - { return StructAfter (get_peak_tuple ()[has_peak ()? axis_count: 0]); } + { return *(const Tuple *)&get_peak_tuple ()[has_peak ()? axis_count: 0]; } const Tuple &get_end_tuple (unsigned int axis_count) const - { return StructAfter (get_peak_tuple ()[has_peak ()? (axis_count * 2): 0]); } + { return *(const Tuple *)&get_peak_tuple ()[has_peak ()? (axis_count * 2): axis_count]; } HBUINT16 varDataSize; TuppleIndex tupleIndex;