From 97bfc0bb777ad5da8d1f5ba2d9e3457338d7fd3a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 22 Apr 2022 22:38:46 -0400 Subject: [PATCH] avoid (unlikely) overflow --- src/fix_bond_history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fix_bond_history.cpp b/src/fix_bond_history.cpp index 67489e6402..a0af563b3b 100644 --- a/src/fix_bond_history.cpp +++ b/src/fix_bond_history.cpp @@ -251,7 +251,7 @@ void FixBondHistory::post_neighbor() double FixBondHistory::memory_usage() { - return maxbond * ndata * sizeof(double); + return (double) maxbond * ndata * sizeof(double); } /* ---------------------------------------------------------------------- */