std::strstr() returns a char * or NULL if the substring isn't found not false.
Signed-off-by: Koop Mast <[email protected]> --- utests/compiler_half.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utests/compiler_half.cpp b/utests/compiler_half.cpp index ce0f7da..e8ed286 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(¶m_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; } -- 2.4.5 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
