Fix warning now treated as error (#2107)

Following the re-enablement of narrowing warnings, this fixes a
compilation error when running the `ubuntu 22.04 arm` GitHub action.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2024-10-08 21:11:46 +01:00
committed by GitHub
parent b64f429b4a
commit 1527c4e425

View File

@@ -88,7 +88,8 @@ template <RunMode mode> struct InvalidCommandQueue : public SemaphoreTestBase
}
cl_device_partition_property partitionProp[] = {
CL_DEVICE_PARTITION_EQUALLY, maxComputeUnits / 2, 0
CL_DEVICE_PARTITION_EQUALLY,
static_cast<cl_device_partition_property>(maxComputeUnits / 2), 0
};
cl_uint deviceCount = 0;