summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/kpathsea/ChangeLog5
-rw-r--r--Build/source/texk/kpathsea/c-minmax.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 0d57e1e1b4f..51ca0f0cea0 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-05 Karl Berry <karl@freefriends.org>
+
+ * c-minmax.h (SCHAR_MAX): decrement to the correct 127.
+ Report from Doug McKenna, tex-k 4 Dec 2017 18:26:35.
+
2017-11-28 Karl Berry <karl@tug.org>
* doc/unixtex.texi: no longer in ~ftp, etc.
diff --git a/Build/source/texk/kpathsea/c-minmax.h b/Build/source/texk/kpathsea/c-minmax.h
index 7181c44b499..a46bd2f123e 100644
--- a/Build/source/texk/kpathsea/c-minmax.h
+++ b/Build/source/texk/kpathsea/c-minmax.h
@@ -1,7 +1,7 @@
/* c-minmax.h: define INT_MIN, etc. Assume a 32-bit machine if the
values aren't defined.
- Copyright 1992, 1993, 2008 Karl Berry.
+ Copyright 1992, 1993, 2008, 2017 Karl Berry.
Copyright 2005 Olaf Weber.
This library is free software; you can redistribute it and/or
@@ -30,7 +30,7 @@
#define SCHAR_MIN (-127)
#endif
#ifndef SCHAR_MAX
-#define SCHAR_MAX 128
+#define SCHAR_MAX 127
#endif
#ifndef UCHAR_MAX
#define UCHAR_MAX 255