- fixed possible int overflow
[alexxy/gromacs-spacetimecorr.git] / src / corrtype.cpp
index 10a18f24c7f614a030e71983081208a4f01ac2a5..677ac1728f148d8b17404709119767b201b5228d 100644 (file)
@@ -37,7 +37,7 @@ void correlationType::update(const int frameNum, const std::vector< RVec > &curF
     std::cout << "\t ola001" << std::endl;
     trajectory.push_back(curFrame);
     std::cout << "\t ola002" << std::endl;
-    size_t temp = window + tau;
+    int temp = window + tau;
     std::cout << "\t ola003" << std::endl;
     if (trajectory.size() == temp + 1) {
         std::cout << "\t ola003.1" << std::endl;