THRIFT-3456 rounding issue in static assert
Client: D
Patch: Nikolay Tolstokulakov
This closes #720
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 @@
struct WithDefaults {
string a = "asdf";
- double b = 3.1415;
+ double b = 1.0e+20;
WithoutMeta c;
mixin TStructHelpers!([
@@ -644,7 +644,7 @@
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, },
}
`);