[calculation] Fix bug in calculation store

This commit is contained in:
Laury
2022-03-23 22:09:26 +01:00
parent 0e24823511
commit 22ba190542

View File

@@ -173,7 +173,7 @@ void CalculationStore::realDeleteCalculationAtIndex(int i) {
// Delete the oldest calculation in the store and returns the amount of space freed by the operation
size_t CalculationStore::deleteOldestCalculation() {
char * oldBufferEnd = (char *) m_calculationAreaEnd;
deleteCalculationAtIndex(numberOfCalculations()-1);
realDeleteCalculationAtIndex(numberOfCalculations()-1);
char * newBufferEnd = (char *) m_calculationAreaEnd;
return oldBufferEnd - newBufferEnd;
}