Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OSX build error due to uint64_t format string incompatibility #47

Merged
merged 1 commit into from
Nov 3, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down