Example: Fix type casting for MSVC warnings

This commit is contained in:
Thomas Stoddard
2026-04-06 10:17:16 -04:00
committed by Kyle Schwarz
parent e7c2c07947
commit 67929a19bc
2 changed files with 6 additions and 5 deletions
@@ -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;