mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
cast character correctly for std::toupper
This commit is contained in:
parent
50280ba2ab
commit
b0b43f6d8e
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user