[Beignet] [PATCH OCL20 07/11] Backend: Refine type intptr_t to 64-bit

Xiuli Pan xiuli.pan at intel.com
Wed Mar 2 03:02:00 UTC 2016


From: Pan Xiuli <xiuli.pan at intel.com>

Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
 backend/src/libocl/include/ocl_types.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend/src/libocl/include/ocl_types.h b/backend/src/libocl/include/ocl_types.h
index eb4c3b4..1ca6bca 100644
--- a/backend/src/libocl/include/ocl_types.h
+++ b/backend/src/libocl/include/ocl_types.h
@@ -44,8 +44,8 @@ typedef unsigned int uint;
 typedef unsigned long ulong;
 typedef __typeof__(sizeof(int)) size_t;
 typedef __typeof__((int *)0-(int *)0) ptrdiff_t;
-typedef signed int intptr_t;
-typedef unsigned int uintptr_t;
+typedef long intptr_t;
+typedef ulong uintptr_t;
 
 /////////////////////////////////////////////////////////////////////////////
 // OpenCL address space
-- 
2.5.0



More information about the Beignet mailing list