mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
Fix bfloat16 round on gcc 4.8
This commit is contained in:
parent
5636f80d11
commit
65e400896b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user