mirror of https://github.com/nmlgc/ReC98.git
[Maintenance] Define `(u)int16_t` as `int` rather than `short`
Turbo C++ 4.0J considers them different types internally, even though they have the same size and signedness. Using `int` allows us to more correctly redeclare a bunch of functions that originally use `(unsigned) int` parameters as `(u)int16_t`. Part of P0134, funded by [Anonymous].
This commit is contained in:
parent
59fb8753bc
commit
a42b6c5ceb
|
@ -13,10 +13,10 @@ typedef int bool16;
|
|||
# define false 0
|
||||
# define true 1
|
||||
typedef char int8_t;
|
||||
typedef short int16_t;
|
||||
typedef int int16_t;
|
||||
typedef long int32_t;
|
||||
typedef unsigned char uint8_t;
|
||||
typedef unsigned short uint16_t;
|
||||
typedef unsigned int uint16_t;
|
||||
typedef unsigned long uint32_t;
|
||||
|
||||
// Generic callback function types. Note the difference between function
|
||||
|
|
Loading…
Reference in New Issue