Repository: thrift
Updated Branches:
  refs/heads/master 13ac77daf -> 2faac5afa


THRIFT-3385 warning: format ‘%lu’ expects ‘long unsigned int’, but has 
type ‘std::basic_string<char>::size_type {aka unsigned int}
Client: C++
Patch: Jens Geyer, based on a proposal made by Henrique Mendonça


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

Branch: refs/heads/master
Commit: 2faac5afac4c962d4ef1d339871db90941735118
Parents: 13ac77d
Author: Jens Geyer <[email protected]>
Authored: Tue Nov 17 23:00:52 2015 +0100
Committer: Jens Geyer <[email protected]>
Committed: Tue Nov 17 23:36:24 2015 +0100

----------------------------------------------------------------------
 test/cpp/src/TestClient.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/2faac5af/test/cpp/src/TestClient.cpp
----------------------------------------------------------------------
diff --git a/test/cpp/src/TestClient.cpp b/test/cpp/src/TestClient.cpp
index 47539dc..a6773d4 100644
--- a/test/cpp/src/TestClient.cpp
+++ b/test/cpp/src/TestClient.cpp
@@ -488,7 +488,7 @@ int main(int argc, char** argv) {
       testClient.testBinary(bin_result, string(bin_data, 256));
       if (bin_result.size() != 256) {
         printf("}\n*** FAILED ***\n");
-        printf("invalid length: %lu\n", bin_result.size());
+        printf("invalid length: %lu\n", static_cast<long unsigned 
int>(bin_result.size()));
         return_code |= ERR_BASETYPES;
       } else {
         bool first = true;

Reply via email to