aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/UtilityTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/test/UtilityTests.cpp')
-rw-r--r--src/armnn/test/UtilityTests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/armnn/test/UtilityTests.cpp b/src/armnn/test/UtilityTests.cpp
index b3b6c3bb3d..7911fd2608 100644
--- a/src/armnn/test/UtilityTests.cpp
+++ b/src/armnn/test/UtilityTests.cpp
@@ -202,7 +202,7 @@ TEST_CASE("NumericCast")
CHECK_NOTHROW(numeric_cast<int8_t>(static_cast<float>(int8_max)));
CHECK_NOTHROW(numeric_cast<int16_t>(static_cast<float>(int16_max)));
- CHECK_NOTHROW(numeric_cast<int32_t>(static_cast<float>(int32_max)));
+ CHECK_NOTHROW(numeric_cast<int32_t>(static_cast<double>(int32_max)));
CHECK_THROWS_AS(numeric_cast<int8_t>(float_max), std::bad_cast);
CHECK_THROWS_AS(numeric_cast<int16_t>(float_max), std::bad_cast);