diff options
Diffstat (limited to 'xdelta3/testing/checksum_test.cc')
-rw-r--r-- | xdelta3/testing/checksum_test.cc | 16 |
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> | |||
50 | usize_t bitsof(); | 50 | usize_t bitsof(); |
51 | 51 | ||
52 | template<> | 52 | template<> |
53 | usize_t bitsof<uint32_t>() { | 53 | usize_t bitsof<unsigned int>() { |
54 | return 32; | 54 | return sizeof(unsigned int) * 8; |
55 | } | 55 | } |
56 | 56 | ||
57 | template<> | 57 | template<> |
58 | usize_t bitsof<uint64_t>() { | 58 | usize_t bitsof<unsigned long>() { |
59 | return 64; | 59 | return sizeof(unsigned long) * 8; |
60 | } | 60 | } |
61 | 61 | ||
62 | template<> | 62 | template<> |
63 | usize_t bitsof<usize_t>() { | 63 | usize_t bitsof<unsigned long long>() { |
64 | return sizeof(usize_t) * 8; | 64 | return sizeof(unsigned long long) * 8; |
65 | } | 65 | } |
66 | 66 | ||
67 | template <typename Word> | 67 | template <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, |