From caa1b4a891c7d36fd42ada8e9eb42dec8243ce05 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 5 Jul 2024 16:12:08 -0400 Subject: [PATCH] promote ndatum to bigint to avoid overflows --- src/my_page.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/my_page.h b/src/my_page.h index ea19dc8e74..1f5c9ad797 100644 --- a/src/my_page.h +++ b/src/my_page.h @@ -29,8 +29,8 @@ struct HyperOneCoeff { template class MyPage { public: - int ndatum; // total # of stored datums - int nchunk; // total # of stored chunks + bigint ndatum; // total # of stored datums + int nchunk; // total # of stored chunks MyPage(); virtual ~MyPage(); @@ -105,7 +105,7 @@ template class MyPage { // 1 = chunk size exceeded maxchunk // 2 = memory allocation error #if defined(_OPENMP) - char pad[64]; // to avoid false sharing with multi-threading + char pad[64]; // to avoid false sharing with multi-threading #endif void allocate(); void deallocate();