3 ms·
This actually makes porting easier, not harder, in most cases, since code semantics remain the same. What makes porting complicated in general is dealing with
by int_19h 9y ago
This actually makes porting easier, not harder, in most cases, since code semantics remain the same.
What makes porting complicated in general is dealing with pointers and handles. These are 32-bit or 64-bit, depending on the architecture. Unfortunately, it was pretty common for old code to assume that they're always 32-bit, and e.g. shove them into ints (WinAPI itself was guilty of this on many occasions).
Technically, such a thing was never portable - not even with longs - until C99 brought us intptr_t, there was no guarantee that any integral type was large enough to hold a pointer. But in practice, it worked, so people did it.