aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-12-04 16:57:06 -0800
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-12-07 17:59:32 -0800
commit5b155e56746d50e0f6db1492c448d783db9dcdac (patch)
treeea7b5511d1ac95cb8eccb67adf2efa0f262fcc09 /include/grpc++
parent52b0f6c371ce184bf9dfe4ac635f95b48b32ea53 (diff)
more win x64 fixes
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/impl/rpc_service_method.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpc++/impl/rpc_service_method.h b/include/grpc++/impl/rpc_service_method.h
index fcb0b7ccce..9d30d9627c 100644
--- a/include/grpc++/impl/rpc_service_method.h
+++ b/include/grpc++/impl/rpc_service_method.h
@@ -251,7 +251,11 @@ class RpcService {
void AddMethod(RpcServiceMethod* method) { methods_.emplace_back(method); }
RpcServiceMethod* GetMethod(int i) { return methods_[i].get(); }
- int GetMethodCount() const { return methods_.size(); }
+ int GetMethodCount() const {
+ // On win x64, int is only 32bit
+ GPR_ASSERT(methods_.size() <= INT_MAX);
+ return (int)methods_.size();
+ }
private:
std::vector<std::unique_ptr<RpcServiceMethod>> methods_;