I embarrassingly forgot what 2^16 - 1 was and went to use 'getlimits',
since I had it built already. I was surprised to see that the limits for
'unsigned short' aren't printed. I assume this wasn't intentional, since
some of the other values aren't currently in use by the tests but are
still printed.

-- 8< --

* src/getlimits.c (USHRT_MIN): New macro.
(main): Print the limits for 'unsigned short'.
---
 src/getlimits.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/getlimits.c b/src/getlimits.c
index 514dd3c09..69d19c67e 100644
--- a/src/getlimits.c
+++ b/src/getlimits.c
@@ -69,6 +69,7 @@
  * #ifdef (TYPE##_MIN) in function macro below.  */
 #define SIZE_MIN 0
 #define UCHAR_MIN 0
+#define USHRT_MIN 0
 #define UINT_MIN 0
 #define ULONG_MIN 0
 #define UINTMAX_MIN 0
@@ -178,6 +179,7 @@ main (int argc, char **argv)
   print_int (SCHAR);
   print_int (UCHAR);
   print_int (SHRT);
+  print_int (USHRT);
   print_int (INT);
   print_int (UINT);
   print_int (LONG);
-- 
2.56.0


Reply via email to