input/curl: use %lu instead of %llu
Fixes a GCC warning because %llu appears to be unsupported by the Windows standard library.
This commit is contained in:
parent
c1869a11af
commit
ff32b0dc9b
@ -398,7 +398,12 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
||||
/* send the "Range" header */
|
||||
|
||||
if (offset > 0) {
|
||||
#ifdef WIN32
|
||||
// TODO: what can we use on Windows to format 64 bit?
|
||||
sprintf(range, "%lu-", (long)offset);
|
||||
#else
|
||||
sprintf(range, "%llu-", (unsigned long long)offset);
|
||||
#endif
|
||||
request->SetOption(CURLOPT_RANGE, range);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user