summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/egl/x11
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2011-01-09 18:18:03 +0800
committerChia-I Wu <olv@lunarg.com>2011-01-10 11:51:13 +0800
commit97e9a0e23f0e06d020883c37b9d065e8978a47f4 (patch)
tree4a53ae95f2616d8d1546756aad5d1bb4e409260e /src/gallium/state_trackers/egl/x11
parent12583174c53b23be6db1fb1cfa3dd1e8dbbd3c15 (diff)
st/egl: Fix a void pointer arithmetic warning.
Diffstat (limited to 'src/gallium/state_trackers/egl/x11')
-rw-r--r--src/gallium/state_trackers/egl/x11/native_dri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/egl/x11/native_dri2.c b/src/gallium/state_trackers/egl/x11/native_dri2.c
index adcc3b39d6..c82e2da863 100644
--- a/src/gallium/state_trackers/egl/x11/native_dri2.c
+++ b/src/gallium/state_trackers/egl/x11/native_dri2.c
@@ -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 *