Commit 4d8d1524 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #16683 from saskatchewancatch:issue-16680

parents 45d073f8 b17e9c61
......@@ -35,7 +35,7 @@ std::string weights_path(const std::string &model_path) {
auto ext = model_path.substr(sz - EXT_LEN);
std::transform(ext.begin(), ext.end(), ext.begin(), [](unsigned char c){ return std::tolower(c); });
std::transform(ext.begin(), ext.end(), ext.begin(), [](unsigned char c){ return static_cast<unsigned char>(std::tolower(c)); });
CV_Assert(ext == ".xml");
return model_path.substr(0u, sz - EXT_LEN) + ".bin";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment