mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
For conversion from integers to float, the DataInfoSpec constructor tries to convert `CL_FLT_MAX` to an integer. The float value cannot be represented as an integer, which is undefined behaviour. Fix by only doing this conversion when `InType` is a floating point value. While at it, use `static_cast` for the conversions. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>