Quick fix for a string format
Summary: Fix one more string format issue that throws warning in mac
This commit is contained in:
parent
35460ccb53
commit
22e1b04deb
@ -180,7 +180,9 @@ int main(int argc, char** argv) {
|
|||||||
output_hex = true;
|
output_hex = true;
|
||||||
} else if (strcmp(argv[i], "--input_key_hex") == 0) {
|
} else if (strcmp(argv[i], "--input_key_hex") == 0) {
|
||||||
input_key_hex = true;
|
input_key_hex = true;
|
||||||
} else if (sscanf(argv[i], "--read_num=%ld%c", &n, &junk) == 1) {
|
} else if (sscanf(argv[i],
|
||||||
|
"--read_num=%lu%c",
|
||||||
|
(unsigned long*)&n, &junk) == 1) {
|
||||||
read_num = n;
|
read_num = n;
|
||||||
} else if (strcmp(argv[i], "--verify_checksum") == 0) {
|
} else if (strcmp(argv[i], "--verify_checksum") == 0) {
|
||||||
verify_checksum = true;
|
verify_checksum = true;
|
||||||
|
@ -169,7 +169,7 @@ std::string HistogramImpl::ToString() const {
|
|||||||
// left
|
// left
|
||||||
(unsigned long)((b == 0) ? 0 : bucketMapper.BucketLimit(b-1)),
|
(unsigned long)((b == 0) ? 0 : bucketMapper.BucketLimit(b-1)),
|
||||||
(unsigned long)bucketMapper.BucketLimit(b), // right
|
(unsigned long)bucketMapper.BucketLimit(b), // right
|
||||||
buckets_[b], // count
|
(unsigned long)buckets_[b], // count
|
||||||
(mult * buckets_[b]), // percentage
|
(mult * buckets_[b]), // percentage
|
||||||
(mult * sum)); // cumulative percentage
|
(mult * sum)); // cumulative percentage
|
||||||
r.append(buf);
|
r.append(buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user