From 22ba19054225f5ccf6dc85657ec030da418516f0 Mon Sep 17 00:00:00 2001 From: Laury Date: Wed, 23 Mar 2022 22:09:26 +0100 Subject: [PATCH] [calculation] Fix bug in calculation store --- apps/calculation/calculation_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/calculation/calculation_store.cpp b/apps/calculation/calculation_store.cpp index 72bc57d34..f1bb4b940 100644 --- a/apps/calculation/calculation_store.cpp +++ b/apps/calculation/calculation_store.cpp @@ -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; }