Fix %I64 breakage
Hrvoje Niksic <[email protected]> Sat, 25 Jun 2005 18:08:15 +0200
| Newsgroups | gmane.comp.web.wget.patches |
|---|---|
| Message-ID | <[email protected]> |
Thanks to David Fritz, Wget should now be using %I64 correctly. 2005-06-25 Hrvoje Niksic <[email protected]> * utils.c (SPRINTF_WGINT): The correct format is %I64d, not just %I64. Index: src/utils.c =================================================================== --- src/utils.c (revision 1817) +++ src/utils.c (working copy) @@ -1345,7 +1345,7 @@ #elif SIZEOF_LONG_LONG >= SIZEOF_WGINT # define SPRINTF_WGINT(buf, n) sprintf (buf, "%lld", (long long) (n)) #elif defined(WINDOWS) -# define SPRINTF_WGINT(buf, n) sprintf (buf, "%I64", (__int64) (n)) +# define SPRINTF_WGINT(buf, n) sprintf (buf, "%I64d", (__int64) (n)) #else # define SPRINTF_WGINT(buf, n) sprintf (buf, "%j", (intmax_t) (n)) #endif