summaryrefslogtreecommitdiff
path: root/xdelta3
diff options
context:
space:
mode:
authorJoshua MacDonald <josh.macdonald@gmail.com>2015-12-29 22:45:18 -0800
committerJoshua MacDonald <josh.macdonald@gmail.com>2015-12-29 22:45:18 -0800
commit45a74391cf324756920cd6c4fa898fdaf4c62456 (patch)
tree125ccb597b5a67d353995a567433b1723f5411d9 /xdelta3
parentb3c0c5c5f733d688796084c9cd500d3197f5321c (diff)
Fix checksum_test for LLVM/Darwin
Diffstat (limited to 'xdelta3')
-rw-r--r--xdelta3/testing/checksum_test.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/xdelta3/testing/checksum_test.cc b/xdelta3/testing/checksum_test.cc
index 897b913..9418d24 100644
--- a/xdelta3/testing/checksum_test.cc
+++ b/xdelta3/testing/checksum_test.cc
@@ -50,18 +50,18 @@ template <typename Word>
50usize_t bitsof(); 50usize_t bitsof();
51 51
52template<> 52template<>
53usize_t bitsof<uint32_t>() { 53usize_t bitsof<unsigned int>() {
54 return 32; 54 return sizeof(unsigned int) * 8;
55} 55}
56 56
57template<> 57template<>
58usize_t bitsof<uint64_t>() { 58usize_t bitsof<unsigned long>() {
59 return 64; 59 return sizeof(unsigned long) * 8;
60} 60}
61 61
62template<> 62template<>
63usize_t bitsof<usize_t>() { 63usize_t bitsof<unsigned long long>() {
64 return sizeof(usize_t) * 8; 64 return sizeof(unsigned long long) * 8;
65} 65}
66 66
67template <typename Word> 67template <typename Word>
@@ -457,8 +457,8 @@ struct test_result : public test_result_base {
457 abort(); 457 abort();
458 } 458 }
459 print_header(); 459 print_header();
460 printf("%-32s%d/%d 2^%" Z "u\t%" Z "u\t%0.4f\t%.4f\t%.4f\t%.1e\t%.2f\t" 460 printf("%-32s%d/%d 2^%" W "u\t%" W "u\t%0.4f\t%.4f\t%.4f\t%.1e\t%.2f\t"
461 "%" Z "u\t%" Z "u\n", 461 "%" W "u\t%" W "u\n",
462 test_name, 462 test_name,
463 Checksum::cksum_size, 463 Checksum::cksum_size,
464 Checksum::cksum_skip, 464 Checksum::cksum_skip,