summaryrefslogtreecommitdiff
path: root/utests/compiler_long.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@intel.com>2013-08-19 14:23:55 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-08-19 15:52:07 +0800
commita268c3d4bcfa9c7b95c9f3b439aec13f138a79c2 (patch)
treeace25a0921833b4f775c714198d70ea58c724872 /utests/compiler_long.cpp
parent82ac9c178a76c79e1a85e5864ca17d5d3def84b7 (diff)
downloadbeignet-a268c3d4bcfa9c7b95c9f3b439aec13f138a79c2.tar.gz
fix left shift warning
/home/q/beignet.git/utests/compiler_long.cpp: In function ‘void compiler_long()’: /home/q/beignet.git/utests/compiler_long.cpp:33:32: warning: left shift count >= width of type [enabled by default] /home/q/beignet.git/utests/compiler_long.cpp:34:32: warning: left shift count >= width of type [enabled by default] Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/compiler_long.cpp')
-rw-r--r--utests/compiler_long.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/compiler_long.cpp b/utests/compiler_long.cpp
index fad27445..d7e15172 100644
--- a/utests/compiler_long.cpp
+++ b/utests/compiler_long.cpp
@@ -30,8 +30,8 @@ void compiler_long(void)
src1[7] = -2L, src2[7] = -1L;
src1[8] = 0, src2[8] = 0x8000000000000000UL;
for (int32_t i = 9; i < (int32_t) n; ++i) {
- src1[i] = ((long)rand() << 32) + rand();
- src2[i] = ((long)rand() << 32) + rand();
+ src1[i] = ((int64_t)rand() << 32) + rand();
+ src2[i] = ((int64_t)rand() << 32) + rand();
}
OCL_MAP_BUFFER(0);
OCL_MAP_BUFFER(1);