couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/3] config commit: updated refs/heads/master to b2ecd0d
Date Wed, 09 Sep 2015 17:48:52 GMT
Fix to_float(Int)


Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/6df0b689
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/6df0b689
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/6df0b689

Branch: refs/heads/master
Commit: 6df0b68971356291f49d4be3f133097b77f603da
Parents: 4f4be71
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Sep 9 08:21:09 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Wed Sep 9 08:21:09 2015 -0700

----------------------------------------------------------------------
 src/config.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/6df0b689/src/config.erl
----------------------------------------------------------------------
diff --git a/src/config.erl b/src/config.erl
index 4537ad2..cf36d2b 100644
--- a/src/config.erl
+++ b/src/config.erl
@@ -95,7 +95,7 @@ to_float(List) when is_list(List) ->
 to_float(Float) when is_float(Float) ->
     Float;
 to_float(Int) when is_integer(Int) ->
-    list_to_float(integer_to_list(Int));
+    list_to_float(integer_to_list(Int) ++ ".0");
 to_float(Bin) when is_binary(Bin) ->
     list_to_float(binary_to_list(Bin)).
 


Mime
View raw message