FCare / Kronos

Kronos is a Sega Saturn emulator.
http://fcare.github.io
237 stars 23 forks source link

Store the result of fgetc call in an int #1568

Closed pstef closed 3 weeks ago

pstef commented 3 weeks ago

The result of fgetc() is an int. It shouldn't be stored in a char, which might be unsigned, and EOF might be negative. It's exactly what happens on my Arm-based machine.