Files
OpenCL-CTS/test_conformance/conversions
Sven van Haastregt b32d566bca conversions: fix undefined behaviour in DataInfoSpec
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>
2023-07-14 15:50:41 +01:00
..
2023-01-24 08:51:00 -08:00
2020-05-20 14:16:19 +01:00
2020-05-20 14:16:19 +01:00