Closed Try closed 2 years ago
Hm interesting. To my knowledge isspace
is supposed to take an int
anyways (see cppreference)? Regardless I'll see if I can reproduce on MinGW on Linux so that I can actually see what's going on here :)
Update: I missed the most crucial part
The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.
I will implement a fix later.
Fixed in 69cd380.
sorry for awful screenshot :)
Offended code:
char
can be signed on some C++ implementations, and have negative values. Issue was hit, when parsing world mesh in steam-eng version of gothic2