From ae7df4d0ac4c88d77a95f6056d105f7c0ccf608a Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 21 Aug 2004 22:57:07 +0000 Subject: [PATCH] M+ always copied the power part of the result, even after performing an addition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5002 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/calculator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index 1630f03877..35ebea6e70 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c @@ -1103,10 +1103,12 @@ void basicButtonsProcess(void){ formatResult(); if (memTemp > MINIMUM) doAdd(&memTemp, &memTempPower, result, power); - else + else { /* if result is too small and memTemp = 0, doAdd will not add */ - memTemp = result; memTempPower = power; + memTemp = result; + memTempPower = power; + } calStatus = cal_normal; break;