diff options
author | Pedro Caldeira <pedro.caldeira@ibm.com> | 2020-09-11 09:14:33 -0500 |
---|---|---|
committer | Pedro Henrique Moreira Caldeira <pedro.caldeira@ibm.com> | 2020-09-14 10:43:59 -0300 |
commit | 65e400896bd5d6e62263d8262f6c7e1644f83298 (patch) | |
tree | 00f02f41d67b0b628665615712eadbd59db57605 /Eigen/src/Core/MathFunctions.h | |
parent | 5636f80d11c320f3bf772feede0ca8652f342ffe (diff) |
Fix bfloat16 round on gcc 4.8
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 40fcb5d49..a5c078b3b 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -407,7 +407,7 @@ inline NewType cast(const OldType& x) { EIGEN_STATIC_ASSERT((!NumTraits<Scalar>::IsComplex), NUMERIC_TYPE_MUST_BE_REAL) EIGEN_USING_STD_MATH(round); - return round(x); + return Scalar(round(x)); } }; #else |