[gcalctool/gnome-2-28] Fix numeric exponent parsing
- From: Robin Sonefors <rsonefors src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcalctool/gnome-2-28] Fix numeric exponent parsing
- Date: Wed, 30 Sep 2009 17:38:52 +0000 (UTC)
commit 3137f385f9a5cb10823ccb7dfb6c20754e4aa2a0
Author: Robin Sonefors <ozamosi flukkost nu>
Date: Wed Sep 30 19:35:43 2009 +0200
Fix numeric exponent parsing
ChangeLog | 4 ++++
src/mp-convert.c | 1 -
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0823dd5..7792ba8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,10 @@
gcalctool change history.
=========================
+2009-09-30 Robin Sonefors <ozamosi flukkost nu>
+
+ * Fix numeric exponent parsing
+
2009-09-22 Robert Ancell <robert ancell gmail com>
* README:
diff --git a/src/mp-convert.c b/src/mp-convert.c
index f0ae9da..eb0ff79 100644
--- a/src/mp-convert.c
+++ b/src/mp-convert.c
@@ -693,7 +693,6 @@ mp_set_from_string(const char *str, int base, MPNumber *z)
while ((i = char_val((char **)&c, base)) >= 0) {
mp_multiply_integer(&MPexponent, base, &MPexponent);
mp_add_integer(&MPexponent, i, &MPexponent);
- c++;
}
if (negate) {
mp_invert_sign(&MPexponent, &MPexponent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]