summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-22 06:44:13 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-22 06:44:13 +0000
commite17cda32d6501b20cbc23cc8c274362736c2bcc8 (patch)
treee0f835f76aabb3e6f8ccdcb78c48d6bcaa44e6fd /pango/glyphstring.c
parent89f8a4e0631434131b8d7308a2c0b22c5bbda5c7 (diff)
parent68a10a221b661cf194086e57ca019364c6775b7f (diff)
downloadpango-e17cda32d6501b20cbc23cc8c274362736c2bcc8.tar.gz
Merge branch 'compiler-warnings' into 'main'
build: More compiler warnings See merge request GNOME/pango!428
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index e937549a..89dec64e 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -391,7 +391,7 @@ pango_glyph_string_index_to_x (PangoGlyphString *glyphs,
int cluster_chars = 0;
int cluster_offset = 0;
- char *p;
+ const char *p;
g_return_if_fail (glyphs != NULL);
g_return_if_fail (length >= 0);
@@ -520,7 +520,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
int end_index = -1;
int cluster_chars = 0;
- char *p;
+ const char *p;
gboolean found = FALSE;
@@ -616,7 +616,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
{
if (index)
{
- char *p = text + start_index;
+ const char *p = text + start_index;
int i = 0;
while (i + 1 <= cp)
@@ -635,7 +635,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
{
if (index)
{
- char *p = text + start_index;
+ const char *p = text + start_index;
int i = 0;
while (i + 1 < cp)