This makes sure stdint.h is included when and only when it's needed (since it's a C99ism, it might be helpful for some people if it's not used when it's not needed).
Other changes:
use INTX_MAX and INTX_MIN instead of the literal number. Note that this breaks the symmetry where INTX_MIN == -INTX_MAX (it's now -INTX_MAX-1) but I don't think it affects anything.
remove sys/types.h include, I don't think this was necessary but let me know if it was there for a reason.
…alues from stdint.h.
This makes sure
stdint.h
is included when and only when it's needed (since it's a C99ism, it might be helpful for some people if it's not used when it's not needed).Other changes:
INTX_MAX
andINTX_MIN
instead of the literal number. Note that this breaks the symmetry whereINTX_MIN
==-INTX_MAX
(it's now-INTX_MAX-1
) but I don't think it affects anything.sys/types.h
include, I don't think this was necessary but let me know if it was there for a reason.