diff --git a/lib/inc/drogon/Cookie.h b/lib/inc/drogon/Cookie.h index 2f02669bd2..6527a129be 100644 --- a/lib/inc/drogon/Cookie.h +++ b/lib/inc/drogon/Cookie.h @@ -359,7 +359,8 @@ class DROGON_EXPORT Cookie return false; for (size_t idx{0}; idx < str1Len; ++idx) { - auto lowerChar{tolower(str1[idx])}; + auto lowerChar{static_cast( + std::tolower(static_cast(str1[idx])))}; if (lowerChar != str2[idx]) {