mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-09-21 16:38:39 +02:00
Example: Fix type casting for MSVC warnings
This commit is contained in:
committed by
Kyle Schwarz
parent
e7c2c07947
commit
67929a19bc
@@ -98,7 +98,7 @@ bool getUserConfirmation(const std::string& prompt) {
|
||||
std::cout << prompt << " (y/n): " << std::flush;
|
||||
std::getline(std::cin, input);
|
||||
if (!input.empty()) {
|
||||
char c = std::tolower(input[0]);
|
||||
char c = static_cast<char>(std::tolower(input[0]));
|
||||
return (c == 'y');
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user