cast character correctly for std::toupper

This commit is contained in:
Thomas Fussell 2017-09-08 13:57:29 -04:00
parent 50280ba2ab
commit b0b43f6d8e

View File

@ -122,7 +122,7 @@ std::pair<std::string, row_t> cell_reference::split_reference(
for (auto character : reference_string) for (auto character : reference_string)
{ {
char upper = std::toupper(character); auto upper = static_cast<char>(std::toupper(static_cast<std::uint8_t>(character)));
if (std::isalpha(character)) if (std::isalpha(character))
{ {