nbarkhina / numero

TI-83 Emulator for Libretro
Other
8 stars 5 forks source link

iOS: fix overflow #10

Closed warmenhoven closed 4 months ago

nbarkhina commented 4 months ago

@warmenhoven is this just for iOS? I never tested on there. I may add an ifdef then to isolate it.

warmenhoven commented 4 months ago

I don't think it's necessarily just for iOS as retro_time_t is typedefed as int64_t and even after dividing by 1000 it still might not fit in an int. fpsThen starts at 0 so if the time in milliseconds doesn't fit in 31 bits you get an overflow.

nbarkhina commented 4 months ago

thanks for the fix!