[Beignet] [PATCH] utest: fix i386 system long ctz fail.
Yang Rong
rong.r.yang at intel.com
Tue Jan 3 10:13:46 UTC 2017
Use 1ll as uint64_t.
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
utests/compiler_ctz.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utests/compiler_ctz.cpp b/utests/compiler_ctz.cpp
index 88f2109..d84fdad 100644
--- a/utests/compiler_ctz.cpp
+++ b/utests/compiler_ctz.cpp
@@ -19,7 +19,7 @@ void test(const char *kernel_name)
OCL_MAP_BUFFER(0);
for (uint32_t i = 0; i < n; ++i) {
- ((U*)buf_data[0])[i] = 1l << i;
+ ((U*)buf_data[0])[i] = 1ll << i;
if(i == sizeof(U)*8)
((U*)buf_data[0])[i] = 0;
}
--
2.1.4
More information about the Beignet
mailing list