diff options
| author | Sam Varshavchik | 2022-05-22 23:57:54 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2022-05-22 23:57:54 -0400 |
| commit | 545e97ccb9facf67865f8f758053d440e9076de0 (patch) | |
| tree | c95472629c757a5a24fd773338c51e98f24e613f /unicode/normalizetest.C | |
| parent | 83e37efc8ed785cd095eb585ff747e5702ec49b3 (diff) | |
| download | courier-libs-545e97ccb9facf67865f8f758053d440e9076de0.tar.bz2 | |
Additional gcc 12 and C++20 fixes.
Diffstat (limited to 'unicode/normalizetest.C')
| -rw-r--r-- | unicode/normalizetest.C | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unicode/normalizetest.C b/unicode/normalizetest.C index c4ecc3f..2c379cb 100644 --- a/unicode/normalizetest.C +++ b/unicode/normalizetest.C @@ -24,7 +24,7 @@ static void dump(const char32_t *s, << std::hex << std::setw(4) << std::setfill('0') - << s[i] + << (unsigned long)s[i] << std::dec << std::setw(0); } @@ -189,7 +189,7 @@ void testtablookup() 0) != t.found) { std::cerr << "unicode_tab_lookup failed for " - << t.ch << std::endl; + << (unsigned long)t.ch << std::endl; } } @@ -212,11 +212,11 @@ void testcompose1() std::cerr << "testcompose1: failed to compose " << std::hex << std::setw(4) << std::setfill('0') - << canonical_compositions[i][0] + << (unsigned long)canonical_compositions[i][0] << " with " << std::hex << std::setw(4) << std::setfill('0') - << canonical_compositions[i][1] + << (unsigned long)canonical_compositions[i][1] << std::endl; exit(1); } @@ -232,11 +232,11 @@ void testcompose1() std::cerr << "testcompose1: should not compose " << std::hex << std::setw(4) << std::setfill('0') - << canonical_compositions[i][1] + << (unsigned long)canonical_compositions[i][1] << " with " << std::hex << std::setw(4) << std::setfill('0') - << canonical_compositions[i][0] + << (unsigned long)canonical_compositions[i][0] << std::endl; exit(1); } |
