avoid (unlikely) overflow

This commit is contained in:
Axel Kohlmeyer
2022-04-22 22:38:46 -04:00
parent cf647347c9
commit 97bfc0bb77

View File

@ -251,7 +251,7 @@ void FixBondHistory::post_neighbor()
double FixBondHistory::memory_usage()
{
return maxbond * ndata * sizeof(double);
return (double) maxbond * ndata * sizeof(double);
}
/* ---------------------------------------------------------------------- */