You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:12:11 UTC

[40/50] [abbrv] git commit: Bug fix for large doubles with a fraction

Bug fix for large doubles with a fraction

My truth table was a bit busted for extreme value doubles.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/90b28c68
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/90b28c68
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/90b28c68

Branch: refs/heads/import
Commit: 90b28c68e6fefe28bc969e0279ef1d6445cf4b13
Parents: ea5f806
Author: Paul J. Davis <pa...@gmail.com>
Authored: Sun Feb 24 22:10:27 2013 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Sun Feb 24 22:14:35 2013 -0600

----------------------------------------------------------------------
 c_src/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/90b28c68/c_src/decoder.c
----------------------------------------------------------------------
diff --git a/c_src/decoder.c b/c_src/decoder.c
index 985a647..604a310 100644
--- a/c_src/decoder.c
+++ b/c_src/decoder.c
@@ -561,7 +561,7 @@ parse:
 
     if(!has_frac && !has_exp) {
         num_type = d->atoms->atom_bignum;
-    } else if(has_exp) {
+    } else if(!has_frac && has_exp) {
         num_type = d->atoms->atom_bignum_e;
     } else {
         num_type = d->atoms->atom_bigdbl;