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 adcc3b39d6823decdd3d364d850e4d246d10ffda..c82e2da863b7c47df681e28a6a89545bc639a607 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 *