XboxDev / nxdk-pdclib

The Public Domain C Library (adapted for original Xbox / nxdk toolchain)
http://pdclib.rootdirectory.de
Creative Commons Zero v1.0 Universal
19 stars 9 forks source link

ptrdiff_t needs to be int, not long #11

Closed thrimbor closed 5 years ago

thrimbor commented 5 years ago

Fixes the definition of _PDCLIB_ptrdiff to be int instead of long, as it should be. Using the incorrect type breaks libc++ compilation because of mismatched types when instantiating a template in streambuf.

dracc commented 5 years ago

NevolutionX still builds fine with this change, runs like before. Probably no pointer subtraction going on there though. :thinking: