mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Removed implicit type conversion (VC warning fix).
This commit is contained in:
@@ -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>())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user