st/egl: Fix a void pointer arithmetic warning.
authorChia-I Wu <olv@lunarg.com>
Sun, 9 Jan 2011 10:18:03 +0000 (18:18 +0800)
committerChia-I Wu <olv@lunarg.com>
Mon, 10 Jan 2011 03:51:13 +0000 (11:51 +0800)
src/gallium/state_trackers/egl/x11/native_dri2.c

index adcc3b3..c82e2da 100644 (file)
@@ -799,7 +799,7 @@ dri2_display_hash_table_hash(void *key)
 static int
 dri2_display_hash_table_compare(void *key1, void *key2)
 {
-   return (key1 - key2);
+   return ((char *) key1 - (char *) key2);
 }
 
 struct native_display *