2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Cast ULONG_MAX to unsigned long long when comparing to an unsigned long long

value.
This commit is contained in:
Todd C. Miller
2000-01-20 16:15:41 +00:00
parent d9790399b3
commit 6e5f1c729a

View 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: