You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2015/11/30 22:15:19 UTC
thrift git commit: THRIFT-3456 rounding issue in static assert
Client: D Patch: Nikolay Tolstokulakov
Repository: thrift
Updated Branches:
refs/heads/master ad6fd1b6d -> 56c1dde14
THRIFT-3456 rounding issue in static assert
Client: D
Patch: Nikolay Tolstokulakov
This closes #720
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/56c1dde1
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/56c1dde1
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/56c1dde1
Branch: refs/heads/master
Commit: 56c1dde14504af833943bee7d4b216c889c97a35
Parents: ad6fd1b
Author: Nikolay Tolstokulakov <to...@laximo.ru>
Authored: Mon Nov 30 11:39:42 2015 +0600
Committer: Jens Geyer <je...@apache.org>
Committed: Mon Nov 30 22:14:44 2015 +0100
----------------------------------------------------------------------
lib/d/src/thrift/codegen/idlgen.d | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/56c1dde1/lib/d/src/thrift/codegen/idlgen.d
----------------------------------------------------------------------
diff --git a/lib/d/src/thrift/codegen/idlgen.d b/lib/d/src/thrift/codegen/idlgen.d
index 18af1aa..1cb4c1f 100644
--- a/lib/d/src/thrift/codegen/idlgen.d
+++ b/lib/d/src/thrift/codegen/idlgen.d
@@ -551,7 +551,7 @@ version (unittest) {
struct WithDefaults {
string a = "asdf";
- double b = 3.1415;
+ double b = 1.0e+20;
WithoutMeta c;
mixin TStructHelpers!([
@@ -644,7 +644,7 @@ version (unittest) {
static assert(structIdlString!WithDefaults ==
`struct WithDefaults {
-1: string a = "asdf",
- -2: double b = 3.1415,
+ -2: double b = 1.0e+20,
1: WithoutMeta c = {a: "foo", b: 3, },
}
`);