[Beignet] [PATCH 2/8] GBE: fix safe type definition.

Zhigang Gong zhigang.gong at intel.com
Tue Mar 31 19:05:37 PDT 2015


Should not use hard coded uint16_t for safe type definition.
Prepare to extend some types to uint32_t.

Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
 backend/src/sys/platform.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/sys/platform.hpp b/backend/src/sys/platform.hpp
index 173b880..803ce21 100644
--- a/backend/src/sys/platform.hpp
+++ b/backend/src/sys/platform.hpp
@@ -248,7 +248,7 @@ class SAFE \
 { \
 public: \
   INLINE SAFE(void) {} \
-  explicit INLINE SAFE(uint16_t unsafe) : unsafe(unsafe) {} \
+  explicit INLINE SAFE(UNSAFE unsafe) : unsafe(unsafe) {} \
   INLINE operator UNSAFE (void) const { return unsafe; } \
   UNSAFE value(void) const { return unsafe; } \
 private: \
-- 
1.9.1



More information about the Beignet mailing list