diff mbox

typdef uintptr_t drm_handle_t; unsigned int is wrong on 64-bit.

Message ID 1270259956.4292.6.camel@ibis.bells (mailing list archive)
State New, archived
Headers show

Commit Message

Matthew W. S. Bell April 3, 2010, 1:59 a.m. UTC
None
diff mbox

Patch

diff --git a/include/drm/drm.h b/include/drm/drm.h
index 4822159..95141a2 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -40,7 +40,7 @@ 
 
 #include <linux/types.h>
 #include <asm/ioctl.h>
-typedef unsigned int drm_handle_t;
+typedef uintptr_t drm_handle_t;
 
 #else /* One of the BSDs */
 
@@ -54,7 +54,7 @@  typedef int32_t  __s32;
 typedef uint32_t __u32;
 typedef int64_t  __s64;
 typedef uint64_t __u64;
-typedef unsigned long drm_handle_t;
+typedef uintptr_t drm_handle_t;
 
 #endif