提交 81ec543d 编写于 作者: B Behdad Esfahbod

More -Wcast-error fixes

上级 90772725
...@@ -244,7 +244,7 @@ hb_font_get_glyph_h_advances_default (hb_font_t* font, ...@@ -244,7 +244,7 @@ hb_font_get_glyph_h_advances_default (hb_font_t* font,
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride); first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride);
first_advance = &StructAtOffset<hb_position_t> (first_advance, advance_stride); first_advance = (hb_position_t *) &StructAtOffset<char> (first_advance, advance_stride);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
return; return;
...@@ -258,7 +258,7 @@ hb_font_get_glyph_h_advances_default (hb_font_t* font, ...@@ -258,7 +258,7 @@ hb_font_get_glyph_h_advances_default (hb_font_t* font,
*first_advance = font->parent_scale_x_distance (*first_advance); *first_advance = font->parent_scale_x_distance (*first_advance);
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
first_advance = &StructAtOffset<hb_position_t> (first_advance, advance_stride); first_advance = (hb_position_t *) &StructAtOffset<char> (first_advance, advance_stride);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
} }
...@@ -282,7 +282,7 @@ hb_font_get_glyph_v_advances_default (hb_font_t* font, ...@@ -282,7 +282,7 @@ hb_font_get_glyph_v_advances_default (hb_font_t* font,
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride); first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride);
first_advance = &StructAtOffset<hb_position_t> (first_advance, advance_stride); first_advance = (hb_position_t *) &StructAtOffset<char> (first_advance, advance_stride);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
return; return;
...@@ -296,7 +296,7 @@ hb_font_get_glyph_v_advances_default (hb_font_t* font, ...@@ -296,7 +296,7 @@ hb_font_get_glyph_v_advances_default (hb_font_t* font,
*first_advance = font->parent_scale_y_distance (*first_advance); *first_advance = font->parent_scale_y_distance (*first_advance);
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
first_advance = &StructAtOffset<hb_position_t> (first_advance, advance_stride); first_advance = (hb_position_t *) &StructAtOffset<char> (first_advance, advance_stride);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
} }
......
...@@ -298,7 +298,7 @@ hb_ft_get_glyph_h_advances (hb_font_t* font, void* font_data, ...@@ -298,7 +298,7 @@ hb_ft_get_glyph_h_advances (hb_font_t* font, void* font_data,
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride); first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride);
first_advance = &StructAtOffset<hb_position_t> (first_advance, advance_stride); first_advance = (hb_position_t *) &StructAtOffset<char> (first_advance, advance_stride);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
} }
......
...@@ -115,7 +115,7 @@ hb_ot_get_glyph_h_advances (hb_font_t* font, void* font_data, ...@@ -115,7 +115,7 @@ hb_ot_get_glyph_h_advances (hb_font_t* font, void* font_data,
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride); first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride);
first_advance = &StructAtOffset<hb_position_t> (first_advance, advance_stride); first_advance = (hb_position_t *) &StructAtOffset<char> (first_advance, advance_stride);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
} }
...@@ -138,7 +138,7 @@ hb_ot_get_glyph_v_advances (hb_font_t* font, void* font_data, ...@@ -138,7 +138,7 @@ hb_ot_get_glyph_v_advances (hb_font_t* font, void* font_data,
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride); first_glyph = (hb_codepoint_t *) &StructAtOffset<char> (first_glyph, glyph_stride);
first_advance = &StructAtOffset<hb_position_t> (first_advance, advance_stride); first_advance = (hb_position_t *) &StructAtOffset<char> (first_advance, advance_stride);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册