Overflow checks are not needed.

This commit is contained in:
Bartosz Taudul 2018-04-29 02:47:25 +02:00
parent b06f445de9
commit 723f98d24b

View File

@ -580,7 +580,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
if( aptr->timeAlloc < fptr->first )
{
time = aptr->timeAlloc;
usage += aptr->size;
usage += int64_t( aptr->size );
aptr++;
}
else
@ -599,7 +599,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
{
assert( aptr->timeFree < 0 );
int64_t time = aptr->timeAlloc;
usage += aptr->size;
usage += int64_t( aptr->size );
assert( min <= usage );
if( max < usage ) max = usage;
ptr->time = time;