[tex-k] Wrong constant value?

Akira Kakuto kakuto at fuk.kindai.ac.jp
Tue Dec 5 09:45:44 CET 2017


Dear Douglas,

> In the kpathsea header file "c-minmax.h" the line
>
>    #define SCHAR_MAX 128
>
> seems to me to be incorrect.  I would think it should be
>
>    #define SCHAR_MAX 127

Probably, absolute values of MIN and MAX are reversed ;-
#define SCHAR_MIN (-127)
#define SCHAR_MAX 128
--->
#define SCHAR_MIN (-128)
#define SCHAR_MAX 127

Similarly
#define SHRT_MIN (-32767)
--->
#define SHRT_MIN (-32768)

#define INT_MIN (-2147483647)
--->
#define INT_MIN (-2147483648)

The are all unused in Kpathsea.

Best,
Akira



More information about the tex-k mailing list