diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2017-01-18 16:09:35 -0800 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2017-01-18 16:09:35 -0800 |
commit | 4bc4979acccdb6d4c9a43da856f8ef8e5ed23909 (patch) | |
tree | 84b57af74e3cababc4f4cc06b1d66e624fc3c0a7 /grpc | |
parent | b095367d172f406385a01a98c6bf309a8da23d6a (diff) | |
download | flatbuffers-4bc4979acccdb6d4c9a43da856f8ef8e5ed23909.tar.gz flatbuffers-4bc4979acccdb6d4c9a43da856f8ef8e5ed23909.tar.bz2 flatbuffers-4bc4979acccdb6d4c9a43da856f8ef8e5ed23909.zip |
Fix compiler warning on Visual Studio.
Change-Id: Ifda5f2c32c6484508d5e12a463d6373798f1f523
Diffstat (limited to 'grpc')
-rw-r--r-- | grpc/src/compiler/go_generator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grpc/src/compiler/go_generator.cc b/grpc/src/compiler/go_generator.cc index 79c750fd..ce4223da 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<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; } |