Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed Aug 5, 2024
1 parent 6d38ec8 commit ce8ba73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_conformance/context/test_context_negative_create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int test_context_negative_create(cl_device_id device, cl_context context,
test_error(err, "clGetPlatformIDs failed");


num_platforms = std::max(num_platforms, (cl_uint)2);
num_platforms = std::min(num_platforms, (cl_uint)2);
std::vector<cl_platform_id> platforms(num_platforms);

err = clGetPlatformIDs(num_platforms, platforms.data(), &num_platforms);
Expand Down

0 comments on commit ce8ba73

Please sign in to comment.