Avoid a compiler warning.
authorMatthias Clasen <mclasen@redhat.com>
Fri, 15 Dec 2006 22:13:53 +0000 (22:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 15 Dec 2006 22:13:53 +0000 (22:13 +0000)
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/guniprop.c (interval_compare): Avoid a compiler
        warning.

ChangeLog
glib/guniprop.c

index 73be3e4..9ee73af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-12-15  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/guniprop.c (interval_compare): Avoid a compiler
+       warning.
+
        * glib/gspawn.c (do_exec): Call set_cloexec() with
        the right parameters.  (#386252, Guillaume Desmottes)
 
index 6bbd967..f2f6417 100644 (file)
@@ -390,7 +390,7 @@ static int
 interval_compare (const void *key, const void *elt)
 {
   gunichar c = GPOINTER_TO_UINT (key);
-  struct Interval *interval = elt;
+  struct Interval *interval = (struct Interval *)elt;
 
   if (c < interval->start)
     return -1;