mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fix conversion warnings
This commit is contained in:
parent
292d61970a
commit
9ac1634fdf
@ -249,10 +249,10 @@ class RandomSetter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// prefix sum
|
// prefix sum
|
||||||
Index count = 0;
|
StorageIndex count = 0;
|
||||||
for (Index j=0; j<mp_target->outerSize(); ++j)
|
for (Index j=0; j<mp_target->outerSize(); ++j)
|
||||||
{
|
{
|
||||||
Index tmp = positions[j];
|
StorageIndex tmp = positions[j];
|
||||||
mp_target->outerIndexPtr()[j] = count;
|
mp_target->outerIndexPtr()[j] = count;
|
||||||
positions[j] = count;
|
positions[j] = count;
|
||||||
count += tmp;
|
count += tmp;
|
||||||
@ -281,7 +281,7 @@ class RandomSetter
|
|||||||
mp_target->innerIndexPtr()[i+1] = mp_target->innerIndexPtr()[i];
|
mp_target->innerIndexPtr()[i+1] = mp_target->innerIndexPtr()[i];
|
||||||
--i;
|
--i;
|
||||||
}
|
}
|
||||||
mp_target->innerIndexPtr()[i+1] = inner;
|
mp_target->innerIndexPtr()[i+1] = internal::convert_index<StorageIndex>(inner);
|
||||||
mp_target->valuePtr()[i+1] = it->second.value;
|
mp_target->valuePtr()[i+1] = it->second.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user