mirror of
https://github.com/google/benchmark.git
synced 2025-01-30 13:50:15 +08:00
Fixed int to char warning.
This commit is contained in:
parent
0a8e0dbb0b
commit
5cced076d2
@ -92,7 +92,7 @@ static std::string FlagToEnvVar(const char* flag) {
|
||||
|
||||
std::string env_var;
|
||||
for (size_t i = 0; i != flag_str.length(); ++i)
|
||||
env_var += ::toupper(flag_str.c_str()[i]);
|
||||
env_var += static_cast<char>(::toupper(flag_str.c_str()[i]));
|
||||
|
||||
return "BENCHMARK_" + env_var;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user