Fix compiler warning on Visual Studio.

Change-Id: Ifda5f2c32c6484508d5e12a463d6373798f1f523
This commit is contained in:
Wouter van Oortmerssen
2017-01-18 16:09:35 -08:00
parent b095367d17
commit 4bc4979acc

View File

@@ -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<char>(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<char>(std::toupper(s[0]));
return s;
}