Skip to content
Permalink
Browse files
Merge pull request #47 from RealImage/osx-build-error-fix
Fix OSX build error due to uint64_t format string incompatibility
  • Loading branch information
bji committed Nov 3, 2016
2 parents 6a0336f + 2f9a24c commit 731a009ab6aa7af3fe0e2910d7d7c057f08a45cf
Showing 1 changed file with 3 additions and 3 deletions.
@@ -360,9 +360,9 @@ static S3Status compose_amz_headers(const RequestParams *params,
}
// If byteCount != 0 then we're just copying a range, add header
if (params->byteCount > 0) {
headers_append(1, "x-amz-copy-source-range: bytes=%ld-%ld",
params->startByte,
params->startByte + params->byteCount);
headers_append(1, "x-amz-copy-source-range: bytes=%llu-%llu",
(unsigned long long)params->startByte,
(unsigned long long)params->startByte + params->byteCount);
}
// And the x-amz-metadata-directive header
if (properties) {

0 comments on commit 731a009

Please sign in to comment.