From: Tim =?iso-8859-15?q?R=FChsen?= <[email protected]> > That should not be a problem unless offset exceeds 31 bits.
As you may recall, I reported a compiler complaint. The compiler doesn't care about the value at run time. > http://lists.gnu.org/archive/html/bug-wget/2012-07/msg00033.html > AFAIK, long long should be 64 bits. It may be, if you have one. On VMS VAX (DEC/Compaq C), there is no "long long" type, nor is "%lld" valid. > So, the fix would be to use %lld or %llu in the format string and (long > long)offset or (unsigned long long)offset in the argument list. If that "the fix" would have worked for me, then I'd've suggested it. What _would_ work for me is a different format string, including either "%ld" or "%lld", depending on whether off_t is 32 bits or 64. As I explained earlier: > [...] In this case, the "%ld" is in > the middle of a format string, and I don't know how you'd prefer to deal > with it, but I'd guess that some conditionality somewhere will be > needed. > I just don't have my development environment handy, so maybe someone else can > create a patch. Or you have to wait a few days... I could fix it for myself, but I was unwilling to guess if the preference was for a whole different format string based on SIZEOF_OFF_T, or some other mechanism. ------------------------------------------------------------------------ Steven M. Schweda sms@antinode-info 382 South Warwick Street (+1) 651-699-9818 Saint Paul MN 55105-2547
