As I was looking over misc.c I noticed that the #error line in front
of the sysinttostr() function said "strtosysint" instead; attached is a
patch that fixes that.

While I was at it, I attempted to reword the #error text for that check
and the one in front of the strtosysint() function to make it a little
clearer what is being checked in each case; obviously, feel free to
correct/improve these descriptions as appropriate.


                                                        Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway  -  [email protected]  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239
--- misc.c_orig	2012-12-31 16:46:54.778362426 -0500
+++ misc.c	2013-01-28 18:34:54.657637815 -0500
@@ -332,7 +332,7 @@
    the range MINVAL .. -1, represent it with a string representation
    of the negative integer, using leading '-'.  */
 #if ! (INTMAX_MAX <= UINTMAX_MAX / 2)
-# error "strtosysint accepts uintmax_t to represent intmax_t"
+# error "sysinttostr:  uintmax_t can't represent all intmax_t values"
 #endif
 char *
 sysinttostr (uintmax_t value, intmax_t minval, uintmax_t maxval,
@@ -361,7 +361,7 @@
    On conversion error, return 0 and set errno = EINVAL.
    On overflow, return an extreme value and set errno = ERANGE.  */
 #if ! (INTMAX_MAX <= UINTMAX_MAX)
-# error "strtosysint accepts uintmax_t to represent nonnegative intmax_t"
+# error "strtosysint: nonnegative intmax_t doesn't fit in uintmax_t"
 #endif
 intmax_t
 strtosysint (char const *arg, char **arglim, intmax_t minval, uintmax_t maxval)

Reply via email to