make conversions explicit
Found with MSVC's C4244 Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
+1
-1
@@ -469,7 +469,7 @@ int Params::option(int opt, const std::string& optArg, int optOpt) {
|
||||
|
||||
int Params::setLogLevel(const std::string& optArg) {
|
||||
int rc = 0;
|
||||
const char logLevel = tolower(optArg[0]);
|
||||
const auto logLevel = static_cast<char>(tolower(optArg[0]));
|
||||
switch (logLevel) {
|
||||
case 'd':
|
||||
Exiv2::LogMsg::setLevel(Exiv2::LogMsg::debug);
|
||||
|
||||
Reference in New Issue
Block a user