diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-08-21 22:57:07 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-08-21 22:57:07 +0000 |
commit | ae7df4d0ac4c88d77a95f6056d105f7c0ccf608a (patch) | |
tree | 4341302e26189c51c897e36b77ef792a5dd4a66d /apps | |
parent | 2f20b3e78426600e0e8008eab6663fc4f0547f57 (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/calculator.c | 6 |
1 files 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; |