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