summaryrefslogtreecommitdiff
path: root/utests
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2017-01-03 18:13:09 +0800
committerYang Rong <rong.r.yang@intel.com>2017-01-03 18:15:46 +0800
commit617c22ba318b933027660e2b6236e9a3f32f1c4c (patch)
tree993a2734203f9cac22078490bf3b08f82fa71bdb /utests
parent5d9a8cacce11d4c3edd0cde7c8eaffde9a6e0abb (diff)
utest: fix i386 system long ctz fail.
Use 1ll as uint64_t. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
Diffstat (limited to 'utests')
-rw-r--r--utests/compiler_ctz.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/compiler_ctz.cpp b/utests/compiler_ctz.cpp
index 88f21093..d84fdada 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;
}