]> granicus.if.org Git - sudo/commitdiff
Cast ULONG_MAX to unsigned long long when comparing to an unsigned long long
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 Jan 2000 16:15:41 +0000 (16:15 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 Jan 2000 16:15:41 +0000 (16:15 +0000)
value.

snprintf.c

index 67bf7587ecd9e629e6c782ca3b9c2811f4a8915b..e3bde41aeed30b1daeff1478615516f0441f48ab 100644 (file)
@@ -219,7 +219,7 @@ __uqtoa(val, endp, base, octzero, xdigs)
 
        /* quick test for small values; __ultoa is typically much faster */
        /* (perhaps instead we should run until small, then call __ultoa?) */
-       if (val <= ULONG_MAX)
+       if (val <= (unsigned long long)ULONG_MAX)
                return (__ultoa((unsigned long)val, endp, base, octzero, xdigs));
        switch (base) {
        case 10: