Commit 15df020d authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Cast to const char *, not char *. (#138153, Nikolai Weibull)

2006-12-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/gunicode.h (g_utf8_next_char): Cast to const char *,
        not char *.  (#138153, Nikolai Weibull)
parent cf7b313f
2006-12-11 Matthias Clasen <mclasen@redhat.com>
* 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 <timj@gtk.org>
* glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment