mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 21:46:10 +00:00
Fix compiler warning on Visual Studio.
Change-Id: Ifda5f2c32c6484508d5e12a463d6373798f1f523
This commit is contained in:
@@ -50,7 +50,7 @@ namespace grpc_go_generator {
|
|||||||
grpc::string unexportName(grpc::string s) {
|
grpc::string unexportName(grpc::string s) {
|
||||||
if (s.empty())
|
if (s.empty())
|
||||||
return s;
|
return s;
|
||||||
s[0] = std::tolower(s[0]);
|
s[0] = static_cast<char>(std::tolower(s[0]));
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ grpc::string unexportName(grpc::string s) {
|
|||||||
grpc::string exportName(grpc::string s) {
|
grpc::string exportName(grpc::string s) {
|
||||||
if (s.empty())
|
if (s.empty())
|
||||||
return s;
|
return s;
|
||||||
s[0] = std::toupper(s[0]);
|
s[0] = static_cast<char>(std::toupper(s[0]));
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user