promote ndatum to bigint to avoid overflows

This commit is contained in:
Axel Kohlmeyer
2024-07-05 16:12:08 -04:00
parent 8fcde04097
commit caa1b4a891

View File

@ -29,8 +29,8 @@ struct HyperOneCoeff {
template <class T> 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 T> 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();