mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Removed implicit type conversion (VC warning fix).
This commit is contained in:
parent
21d2533723
commit
104f9954e1
@ -332,7 +332,7 @@ inline bool ei_sqrt(bool x) { return x; }
|
|||||||
|
|
||||||
template<> inline bool ei_random()
|
template<> inline bool ei_random()
|
||||||
{
|
{
|
||||||
return ei_random<int>(0,1);
|
return (ei_random<int>(0,1) == 1);
|
||||||
}
|
}
|
||||||
inline bool ei_isMuchSmallerThan(bool a, bool, bool = precision<bool>())
|
inline bool ei_isMuchSmallerThan(bool a, bool, bool = precision<bool>())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user