From 17632c97367b32ac56774833b2ad36a028b3f02f Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Tue, 9 Mar 2021 09:09:10 +0000 Subject: [PATCH] Remove undesired conversions from size_t to int (#1180) Improve math_brute_force kernels by consistently using size_t to store the result of get_global_id(). This change was missed in 5d7be40e (Remove undesired conversions from size_t to int (#1153), 2021-02-11). Signed-off-by: Marco Antognini --- test_conformance/math_brute_force/i_unary_float.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/math_brute_force/i_unary_float.cpp b/test_conformance/math_brute_force/i_unary_float.cpp index 6d04a248..6b4a0f8c 100644 --- a/test_conformance/math_brute_force/i_unary_float.cpp +++ b/test_conformance/math_brute_force/i_unary_float.cpp @@ -31,7 +31,7 @@ static int BuildKernel(const char *name, int vectorSize, cl_kernel *k, sizeNames[vectorSize], "* in)\n" "{\n" - " int i = get_global_id(0);\n" + " size_t i = get_global_id(0);\n" " out[i] = ", name, "( in[i] );\n"