summaryrefslogtreecommitdiffstats
path: root/source/l/glib2/glib.g_str_equal.diff
blob: 88fcdd3d995d0b2e163cdac126dece4c8b9662c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ./glib/ghash.h.orig	2022-11-24 06:29:05.000000000 -0600
+++ ./glib/ghash.h	2022-11-28 13:41:03.250650020 -0600
@@ -162,7 +162,7 @@
                          gconstpointer  v2);
 
 /* Macro for optimization in the case it is not used as callback function */
-#define g_str_equal(v1, v2) (strcmp ((gconstpointer) (v1), (gconstpointer) (v2)) == 0)
+#define g_str_equal(v1, v2) (strcmp ((const char*) (gconstpointer) (v1),(const char*) (gconstpointer) (v2)) == 0)
 
 GLIB_AVAILABLE_IN_ALL
 guint    g_str_hash     (gconstpointer  v);