THRIFT-4515: fix windows build
Client: cpp
diff --git a/test/cpp/src/TestServer.cpp b/test/cpp/src/TestServer.cpp
index 6b4df7d..b93e5ea 100644
--- a/test/cpp/src/TestServer.cpp
+++ b/test/cpp/src/TestServer.cpp
@@ -114,7 +114,7 @@
void testBinary(std::string& _return, const std::string& thing) {
std::ostringstream hexstr;
hexstr << std::hex << thing;
- printf("testBinary(%lu: %s)\n", thing.size(), hexstr.str().c_str());
+ printf("testBinary(%lu: %s)\n", safe_numeric_cast<unsigned long>(thing.size()), hexstr.str().c_str());
_return = thing;
}
@@ -796,7 +796,7 @@
// THRIFT-4515: this needs to be improved
while (1) {
- sleep(1); // do something other than chew up CPU like crazy
+ THRIFT_SLEEP_SEC(1); // do something other than chew up CPU like crazy
}
// NOTREACHED