Please replace UINT64_MAX here and in Line  298 with std::numeric_limits<uint64_t>::max().