You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ns...@apache.org on 2016/03/16 18:17:16 UTC

[1/2] thrift git commit: THRIFT-3739 Deprecation warning in codegen/base.d

Repository: thrift
Updated Branches:
  refs/heads/master 1d20a370d -> 7f6ea4e7f


THRIFT-3739 Deprecation warning in codegen/base.d

This closes #946


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/8e1fd869
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/8e1fd869
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/8e1fd869

Branch: refs/heads/master
Commit: 8e1fd869853e5b5d1aa97f69ac6b567b0e9c7ccd
Parents: 1d20a37
Author: Nobuaki Sukegawa <ns...@apache.org>
Authored: Sun Mar 13 19:31:14 2016 +0900
Committer: Nobuaki Sukegawa <ns...@apache.org>
Committed: Thu Mar 17 01:26:16 2016 +0900

----------------------------------------------------------------------
 lib/d/src/thrift/codegen/base.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/8e1fd869/lib/d/src/thrift/codegen/base.d
----------------------------------------------------------------------
diff --git a/lib/d/src/thrift/codegen/base.d b/lib/d/src/thrift/codegen/base.d
index 0e94335..db54992 100644
--- a/lib/d/src/thrift/codegen/base.d
+++ b/lib/d/src/thrift/codegen/base.d
@@ -592,7 +592,7 @@ template TIsSetFlags(T, alias fieldMetaData) {
  * the wire without altering their definitions.
  */
 void readStruct(T, Protocol, alias fieldMetaData = cast(TFieldMeta[])null,
-  bool pointerStruct = false)(ref T s, Protocol p) if (isTProtocol!Protocol)
+  bool pointerStruct = false)(auto ref T s, Protocol p) if (isTProtocol!Protocol)
 {
   mixin({
     string code;


[2/2] thrift git commit: THRIFT-3744 The precision should be 17 (16 bits need after dot) after dot for double type.

Posted by ns...@apache.org.
THRIFT-3744 The precision should be 17 (16 bits need after dot) after dot for double type.

This closes #948


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/7f6ea4e7
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/7f6ea4e7
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/7f6ea4e7

Branch: refs/heads/master
Commit: 7f6ea4e7fe6fc15955438e00335398424cf0fca4
Parents: 8e1fd86
Author: Wang Yaofu <vo...@sina.cn>
Authored: Tue Mar 15 09:54:21 2016 +0800
Committer: Nobuaki Sukegawa <ns...@apache.org>
Committed: Thu Mar 17 01:26:24 2016 +0900

----------------------------------------------------------------------
 lib/d/src/thrift/protocol/json.d | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/7f6ea4e7/lib/d/src/thrift/protocol/json.d
----------------------------------------------------------------------
diff --git a/lib/d/src/thrift/protocol/json.d b/lib/d/src/thrift/protocol/json.d
index 223d3a3..56a71da 100644
--- a/lib/d/src/thrift/protocol/json.d
+++ b/lib/d/src/thrift/protocol/json.d
@@ -133,7 +133,8 @@ final class TJsonProtocol(Transport = TTransport) if (
     bool escapeNum = value !is null || context_.escapeNum;
 
     if (value is null) {
-      value = format("%.16g", dub);
+      /* precision is 17 */
+      value = format("%.17g", dub);
     }
 
     if (escapeNum) trans_.write(STRING_DELIMITER);