summaryrefslogtreecommitdiff
path: root/utests/utest_file_map.cpp
diff options
context:
space:
mode:
authorBenjamin Segovia <benjamin.segovia@intel.com>2012-11-09 01:05:16 -0800
committerBenjamin Segovia <benjamin.segovia@intel.com>2012-11-09 01:05:16 -0800
commitd44f852522abe5aa0f6d460f6f4d3c63cb7b2bb4 (patch)
tree8e31b92eaffe4b01f750cc157720a99d6d40a09b /utests/utest_file_map.cpp
parent382b40b0e08de77b6173044e2e56439ac1b31068 (diff)
downloadbeignet-d44f852522abe5aa0f6d460f6f4d3c63cb7b2bb4.tar.gz
Fixed more warning with LLVM 3.2
Redisabled LLVM 3.2. There are still problems. Some kernels output wrong code. It is certainly the lost copy issue.
Diffstat (limited to 'utests/utest_file_map.cpp')
-rw-r--r--utests/utest_file_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/utest_file_map.cpp b/utests/utest_file_map.cpp
index 680caaf3..da3361c0 100644
--- a/utests/utest_file_map.cpp
+++ b/utests/utest_file_map.cpp
@@ -100,7 +100,7 @@ cl_file_map_open(cl_file_map_t *fm, const char *name)
fm->size = lseek(fm->fd, 0, SEEK_END);
lseek(fm->fd, 0, SEEK_SET);
fm->start = mmap(0, fm->size, PROT_READ, MAP_SHARED, fm->fd, 0);
- if(fm->start <= 0) {
+ if(fm->start == NULL) {
err = CL_FILE_MAP_FAILED_TO_MMAP;
goto error;
}