From b17e9c614b4289a9a1bc8b521a0ca72b49347861 Mon Sep 17 00:00:00 2001 From: Rajkiran Natarajan Date: Wed, 26 Feb 2020 22:59:02 -0800 Subject: [PATCH] Fix annoying compiler warning. --- modules/gapi/samples/privacy_masking_camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gapi/samples/privacy_masking_camera.cpp b/modules/gapi/samples/privacy_masking_camera.cpp index 7cb6e22bd9..d16a1b92df 100644 --- a/modules/gapi/samples/privacy_masking_camera.cpp +++ b/modules/gapi/samples/privacy_masking_camera.cpp @@ -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(std::tolower(c)); }); CV_Assert(ext == ".xml"); return model_path.substr(0u, sz - EXT_LEN) + ".bin";