Fix compiler warning on Visual Studio.

Change-Id: Ifda5f2c32c6484508d5e12a463d6373798f1f523
parent b095367d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment