diff options
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-language.c | 2 | ||||
-rw-r--r-- | pango/pangofc-font.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-language.c b/pango/pango-language.c index bb5ed470..410ca0bf 100644 --- a/pango/pango-language.c +++ b/pango/pango-language.c @@ -66,7 +66,7 @@ pango_language_get_private (PangoLanguage *language) if (!language) return NULL; - priv = (PangoLanguagePrivate *) ((char *)language - sizeof (PangoLanguagePrivate)); + priv = (PangoLanguagePrivate *)(void *)((char *)language - sizeof (PangoLanguagePrivate)); if (G_UNLIKELY (priv->magic != PANGO_LANGUAGE_PRIVATE_MAGIC)) { diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 4b6a34f7..7456cd9e 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -993,7 +993,7 @@ pango_fc_font_create_hb_font (PangoFont *font) if (key) { - FcPattern *pattern = pango_fc_font_key_get_pattern (key); + const FcPattern *pattern = pango_fc_font_key_get_pattern (key); const char *variations; int index; unsigned int n_axes; |