From 4bc4979acccdb6d4c9a43da856f8ef8e5ed23909 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Wed, 18 Jan 2017 16:09:35 -0800 Subject: [PATCH] Fix compiler warning on Visual Studio. Change-Id: Ifda5f2c32c6484508d5e12a463d6373798f1f523 --- grpc/src/compiler/go_generator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc/src/compiler/go_generator.cc b/grpc/src/compiler/go_generator.cc index 79c750fda..ce4223dab 100644 --- a/grpc/src/compiler/go_generator.cc +++ b/grpc/src/compiler/go_generator.cc @@ -50,7 +50,7 @@ namespace grpc_go_generator { grpc::string unexportName(grpc::string s) { if (s.empty()) return s; - s[0] = std::tolower(s[0]); + s[0] = static_cast(std::tolower(s[0])); return s; } @@ -58,7 +58,7 @@ grpc::string unexportName(grpc::string s) { grpc::string exportName(grpc::string s) { if (s.empty()) return s; - s[0] = std::toupper(s[0]); + s[0] = static_cast(std::toupper(s[0])); return s; }