[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-17 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/thrift/pull/870 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-16 Thread mygityf
Github user mygityf commented on the pull request: https://github.com/apache/thrift/pull/870#issuecomment-184704422 @nsuke just do it to make it better. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-16 Thread nsuke
Github user nsuke commented on the pull request: https://github.com/apache/thrift/pull/870#issuecomment-184687016 @mygityf the failure is unrelated to your patch so no need to worry about that any more. Would you mind if I remove the comment as per @hcorg 's suggestion, now

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-15 Thread mygityf
Github user mygityf commented on the pull request: https://github.com/apache/thrift/pull/870#issuecomment-184556899 @nsuke I replace the PI and golden ratio with float literals and use the same digits(17) in file lib/cpp/test/JSONProtoTest.cpp. The result looks OK in Jenkins

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-15 Thread mygityf
Github user mygityf commented on a diff in the pull request: https://github.com/apache/thrift/pull/870#discussion_r52961339 --- Diff: lib/cpp/src/thrift/protocol/TJSONProtocol.cpp --- @@ -524,7 +524,8 @@ namespace { std::string doubleToString(double d) {

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-15 Thread hcorg
Github user hcorg commented on a diff in the pull request: https://github.com/apache/thrift/pull/870#discussion_r52925705 --- Diff: lib/cpp/src/thrift/protocol/TJSONProtocol.cpp --- @@ -524,7 +524,8 @@ namespace { std::string doubleToString(double d) {

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-15 Thread nsuke
Github user nsuke commented on the pull request: https://github.com/apache/thrift/pull/870#issuecomment-184295292 Actually test is failing quite badly. Your fix is fine but the test needs fix too. A possible fix is to replace the PI and golden ratio with float literals and use

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-14 Thread mygityf
Github user mygityf commented on the pull request: https://github.com/apache/thrift/pull/870#issuecomment-184066476 using 17 directly with a comment. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does

[GitHub] thrift pull request: THRIFT-3636 The precision is 15 bits after do...

2016-02-14 Thread nsuke
Github user nsuke commented on the pull request: https://github.com/apache/thrift/pull/870#issuecomment-184044511 thanks for uncovering it ! The "2" is for "0." ? I think the comment can be improved. @hcorg maybe you have better alternative than code comment here ? --- If