Mesa (master): st/egl: Fix a void pointer arithmetic warning.
Chia-I Wu
olv at kemper.freedesktop.org
Mon Jan 10 03:51:51 UTC 2011
Module: Mesa
Branch: master
Commit: 97e9a0e23f0e06d020883c37b9d065e8978a47f4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=97e9a0e23f0e06d020883c37b9d065e8978a47f4
Author: Chia-I Wu <olv at lunarg.com>
Date: Sun Jan 9 18:18:03 2011 +0800
st/egl: Fix a void pointer arithmetic warning.
---
src/gallium/state_trackers/egl/x11/native_dri2.c | 2 +-
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 adcc3b3..c82e2da 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 *
More information about the mesa-commit
mailing list