make conversions explicit

Found with MSVC's C4244

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2023-02-11 14:40:19 -08:00
parent 785a9ed084
commit 5eebbbcbfb
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -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);