From 7cbd85cda23d50fb5e5cd036099c43e1d6f03444 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 9 Apr 2005 02:12:34 +0000 Subject: [PATCH] Use the same function as in updateiconcache.c. (spotted by Morten 2005-04-08 Matthias Clasen * gtk/gtkiconcache.c (icon_name_hash): Use the same function as in updateiconcache.c. (spotted by Morten Welinder) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkiconcache.c | 4 ++-- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 97f8f9a3dd..5b7ed5d8b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-08 Matthias Clasen + + * gtk/gtkiconcache.c (icon_name_hash): Use the same function + as in updateiconcache.c. (spotted by Morten Welinder) + 2005-04-08 Carl Worth * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 97f8f9a3dd..5b7ed5d8b2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-04-08 Matthias Clasen + + * gtk/gtkiconcache.c (icon_name_hash): Use the same function + as in updateiconcache.c. (spotted by Morten Welinder) + 2005-04-08 Carl Worth * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 97f8f9a3dd..5b7ed5d8b2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2005-04-08 Matthias Clasen + + * gtk/gtkiconcache.c (icon_name_hash): Use the same function + as in updateiconcache.c. (spotted by Morten Welinder) + 2005-04-08 Carl Worth * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c index 20166d8a64..d52251c5a3 100644 --- a/gtk/gtkiconcache.c +++ b/gtk/gtkiconcache.c @@ -223,8 +223,8 @@ _gtk_icon_cache_has_directory (GtkIconCache *cache, static guint icon_name_hash (gconstpointer key) { - const char *p = key; - guint h = *p; + const signed char *p = key; + guint32 h = *p; if (h) for (p += 1; *p != '\0'; p++)