summaryrefslogtreecommitdiff
path: root/utests/compiler_half.cpp
diff options
context:
space:
mode:
authorKoop Mast <kwm@rainbow-runner.nl>2015-07-12 21:49:57 +0200
committerYang Rong <rong.r.yang@intel.com>2015-07-14 17:00:51 +0800
commit89c6f17e83294b7d24882de42915a2633905e34d (patch)
tree91ce13dc5256acab808d2213f92f1ecef66951d9 /utests/compiler_half.cpp
parent9d4fd349fb90b9573bc06c95582247507bc75b9f (diff)
downloadbeignet-89c6f17e83294b7d24882de42915a2633905e34d.tar.gz
Fix comparison in if() check.
std::strstr() returns a char * or NULL if the substring isn't found not false. Signed-off-by: Koop Mast <kwm@rainbow-runner.nl> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_half.cpp')
-rw-r--r--utests/compiler_half.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/compiler_half.cpp b/utests/compiler_half.cpp
index ce0f7da4..e8ed2863 100644
--- a/utests/compiler_half.cpp
+++ b/utests/compiler_half.cpp
@@ -115,7 +115,7 @@ static int check_half_device(void)
if (!param_value.empty())
extStr = std::string(&param_value.front(), param_value_size-1);
- if (std::strstr(extStr.c_str(), "cl_khr_fp16") == false) {
+ if (std::strstr(extStr.c_str(), "cl_khr_fp16") == NULL) {
printf("No cl_khr_fp16, Skip!");
return 0;
}