Microsoft Visual Studio Professional 2019
Version 16.11.11
std=c++20
Get rid of `Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value
and then casting the result to a 8 byte value.
Cast the value to the wider type before calling operator '+' to avoid overflow (io.2)`
aTimer.Reset();
aTimer.Start();
{
- for (Standard_Integer anIdx = 0; anIdx < 10000; ++anIdx)
+ for (size_t anIdx = 0; anIdx < 10000; ++anIdx)
{
if (aSet.find (aVec[anIdx + 1000]) == aSet.end())
aResult = Standard_False;
aTimer.Reset();
aTimer.Start();
{
- for (Standard_Integer anIdx = 0; anIdx < 10000; ++anIdx)
+ for (size_t anIdx = 0; anIdx < 10000; ++anIdx)
{
if (!aCollec->Contains (aVec[anIdx + 1000]))
aResult = Standard_False;