From: Matthias Clasen Date: Mon, 11 Dec 2006 14:17:14 +0000 (+0000) Subject: Cast to const char *, not char *. (#138153, Nikolai Weibull) X-Git-Tag: GLIB_2_13_0~194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15df020ddd615d770fe7cac835acc78b6799d03b;p=platform%2Fupstream%2Fglib.git Cast to const char *, not char *. (#138153, Nikolai Weibull) 2006-12-11 Matthias Clasen * glib/gunicode.h (g_utf8_next_char): Cast to const char *, not char *. (#138153, Nikolai Weibull) --- diff --git a/ChangeLog b/ChangeLog index a885ac4..45c9b84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-11 Matthias Clasen + + * glib/gunicode.h (g_utf8_next_char): Cast to const char *, + not char *. (#138153, Nikolai Weibull) + Wed Nov 22 16:09:13 2006 Tim Janik * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias diff --git a/glib/gunicode.h b/glib/gunicode.h index 4c90546..b024a6a 100644 --- a/glib/gunicode.h +++ b/glib/gunicode.h @@ -251,7 +251,7 @@ gunichar *g_unicode_canonical_decomposition (gunichar ch, */ GLIB_VAR const gchar * const g_utf8_skip; -#define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(guchar *)(p)]) +#define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(const guchar *)(p)]) gunichar g_utf8_get_char (const gchar *p); gunichar g_utf8_get_char_validated (const gchar *p,