mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-30 18:25:11 +08:00
fix a warning
This commit is contained in:
parent
c1d005e976
commit
aadea5ae56
@ -658,7 +658,7 @@ struct ei_pow_default_impl<Scalar, true>
|
|||||||
static inline Scalar run(Scalar x, Scalar y)
|
static inline Scalar run(Scalar x, Scalar y)
|
||||||
{
|
{
|
||||||
int res = 1;
|
int res = 1;
|
||||||
if(NumTraits<Scalar>::IsSigned) ei_assert(y >= 0);
|
ei_assert(!NumTraits<Scalar>::IsSigned || y >= 0);
|
||||||
if(y & 1) res *= x;
|
if(y & 1) res *= x;
|
||||||
y >>= 1;
|
y >>= 1;
|
||||||
while(y)
|
while(y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user