diff options
author | Sven Göthel <[email protected]> | 2024-04-10 05:28:16 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-04-10 05:28:16 +0200 |
commit | 5b53c3d62c9be48e9c2c91af077ff577b5222330 (patch) | |
tree | 396e1e4b7c92421c558e303a180ed3e02b6c525f /test/test_basictypeconv.cpp | |
parent | a157898fffae58ddbbbb6cb9adbcc6af871ecf8c (diff) |
test/test_basictypeconv.cpp: Avoid collision with jau::compare(T, T)
Diffstat (limited to 'test/test_basictypeconv.cpp')
-rw-r--r-- | test/test_basictypeconv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_basictypeconv.cpp b/test/test_basictypeconv.cpp index ed307c6..84f2131 100644 --- a/test/test_basictypeconv.cpp +++ b/test/test_basictypeconv.cpp @@ -99,7 +99,7 @@ static void print(const Value_type a) { } template<typename Value_type> -static bool compare(const Value_type a, const Value_type b) { +static bool compare_values(const Value_type a, const Value_type b) { const uint8_t * pa = reinterpret_cast<const uint8_t *>(&a); const uint8_t * pb = reinterpret_cast<const uint8_t *>(&b); bool res = true; @@ -132,7 +132,7 @@ static void test_byteorder(const Value_type v_cpu, } { #if BYTE_ORDER == LITTLE_ENDIAN - REQUIRE( compare(v_le, v_cpu) == true ); + REQUIRE( compare_values(v_le, v_cpu) == true ); Value_type r1_cpu = jau::bswap(v_be); REQUIRE( r1_cpu == v_cpu ); #else |