summaryrefslogtreecommitdiff
path: root/test/correctness
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-03-01 20:42:06 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-03-01 20:42:06 +0100
commite8d5923d2761868b062f0769d6b672696bd7c97e (patch)
tree05ccb8237a6e2bd968b8312b8310da94c43b8b2a /test/correctness
parentd6f1b5fca35414de4c31d4e0e280ca9987c062f1 (diff)
Made a double to float cast explicit for MSVC compatibility (C2397)
Diffstat (limited to 'test/correctness')
-rw-r--r--test/correctness/tester.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/correctness/tester.cpp b/test/correctness/tester.cpp
index 6cafd7bc..046473f8 100644
--- a/test/correctness/tester.cpp
+++ b/test/correctness/tester.cpp
@@ -67,7 +67,7 @@ double getL2ErrorMargin<half>() {
// Error margin: numbers beyond this value are considered equal to inf or NaN
template <typename T>
T getAlmostInfNumber() {
- return T{1e35}; // used for correctness testing of TRSV and TRSM routines
+ return static_cast<T>(1e35); // used for correctness testing of TRSV and TRSM routines
}
// Maximum number of test results printed on a single line