utest: fix i386 system long ctz fail.

Submitted by Yang, Rong R on Jan. 3, 2017, 10:13 a.m.

Details

Message ID 1483438426-5551-1-git-send-email-rong.r.yang@intel.com
State New
Headers show
Series "utest: fix i386 system long ctz fail." ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Yang, Rong R Jan. 3, 2017, 10:13 a.m.
Use 1ll as uint64_t.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
---
 utests/compiler_ctz.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;
   }