diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-07-18 14:29:58 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-07-18 14:29:58 +0000 |
| commit | 666def3789ac274160d7896b8781e81cf3755d5c (patch) | |
| tree | 6a7d177e881aeca57461f4262660e55f96884eb1 /src/runtime/c | |
| parent | fe79e8cd2544a74a09f26b68eb793fc0e88e74ac (diff) | |
bugfix for parsing floating point numbers in the C runtime
Diffstat (limited to 'src/runtime/c')
| -rw-r--r-- | src/runtime/c/gu/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c index 7655b32ab..dc9913002 100644 --- a/src/runtime/c/gu/string.c +++ b/src/runtime/c/gu/string.c @@ -280,7 +280,7 @@ gu_string_to_double(GuString s, double *res) bool neg = false; bool dec = false; - int exp = 1; + double exp = 1; if (src[i] == '-') { neg = true; |
