Skip to content

Commit 731a009

Browse files
authored
Merge pull request #47 from RealImage/osx-build-error-fix
Fix OSX build error due to uint64_t format string incompatibility
2 parents 6a0336f + 2f9a24c commit 731a009

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/request.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ static S3Status compose_amz_headers(const RequestParams *params,
360360
}
361361
// If byteCount != 0 then we're just copying a range, add header
362362
if (params->byteCount > 0) {
363-
headers_append(1, "x-amz-copy-source-range: bytes=%ld-%ld",
364-
params->startByte,
365-
params->startByte + params->byteCount);
363+
headers_append(1, "x-amz-copy-source-range: bytes=%llu-%llu",
364+
(unsigned long long)params->startByte,
365+
(unsigned long long)params->startByte + params->byteCount);
366366
}
367367
// And the x-amz-metadata-directive header
368368
if (properties) {

0 commit comments

Comments
 (0)