more typecasts to double to avoid 32-bit int overflows when computing memory usage
This commit is contained in:
@ -453,7 +453,7 @@ void ComputePropertyAtom::compute_peratom()
|
||||
|
||||
double ComputePropertyAtom::memory_usage()
|
||||
{
|
||||
double bytes = nmax*nvalues * sizeof(double);
|
||||
double bytes = (double)nmax*nvalues * sizeof(double);
|
||||
return bytes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user