removed all C-style casts

This commit is contained in:
2024-07-18 17:56:00 -04:00
parent 8f00e903e8
commit 1a9c04ad5a
36 changed files with 212 additions and 92 deletions

View File

@ -74,7 +74,7 @@ void console_output::render() {
out << std::endl;
out << get_code(contents[idx])
<< (char)(contents[idx] ? contents[idx] : ' ');
<< static_cast<char>(contents[idx] ? contents[idx] : ' ');
}
out << std::endl;

View File

@ -12,7 +12,7 @@ void file_output::render() {
if (idx % DISPLAY_WIDTH == 0 && idx)
out << std::endl;
out << (char)(contents[idx] ? contents[idx] : ' ');
out << static_cast<char>(contents[idx] ? contents[idx] : ' ');
}
out << std::endl;