diff options
author | Makarand Dharmapurikar <makarandd@google.com> | 2016-09-30 11:26:13 -0700 |
---|---|---|
committer | Makarand Dharmapurikar <makarandd@google.com> | 2016-09-30 11:26:13 -0700 |
commit | c9beacadb1f9b0cd8858ce59d6cbed01b7f48cd3 (patch) | |
tree | a0286c52807b9af43c2de7f546dd8b448807e4e5 /test/cpp/interop | |
parent | b6cf4944a5f4fda11f240b3c1b9736c61d299e5b (diff) |
fix for gcc 4.4 warning
Diffstat (limited to 'test/cpp/interop')
-rw-r--r-- | test/cpp/interop/interop_server.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/interop/interop_server.cc b/test/cpp/interop/interop_server.cc index e5e62dfc1a..b58b744b92 100644 --- a/test/cpp/interop/interop_server.cc +++ b/test/cpp/interop/interop_server.cc @@ -157,7 +157,7 @@ class TestServiceImpl : public TestService::Service { Status CacheableUnaryCall(ServerContext* context, const SimpleRequest* request, SimpleResponse* response) { gpr_timespec ts = gpr_now(GPR_CLOCK_PRECISE); - std::string timestamp = std::to_string(ts.tv_nsec); + std::string timestamp = std::to_string((long long unsigned)ts.tv_nsec); response->mutable_payload()->set_body(timestamp.c_str(), timestamp.size()); context->AddInitialMetadata("cache-control", "max-age=60, public"); return Status::OK; |