diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-10 10:08:05 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-10 10:08:05 -0500 |
| commit | 79e040d203e63ec79bb124215dcd1e940f7b676c (patch) | |
| tree | 23c11c6911b99161d0063e63122d9dd15485e1ed /test/pkmem-types.cpp | |
| parent | 74fb835d28f2a4e604a32fd292bb3060a832a1db (diff) | |
pk.h: handle gcc compiler warnings; breaking changes
Diffstat (limited to 'test/pkmem-types.cpp')
| -rw-r--r-- | test/pkmem-types.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/pkmem-types.cpp b/test/pkmem-types.cpp index 0dc0f90..34ef102 100644 --- a/test/pkmem-types.cpp +++ b/test/pkmem-types.cpp @@ -18,26 +18,26 @@ int main(int argc, char *argv[]) constexpr struct pk_handle ch1 { .bucketIndex = 0xAAAAAAAA, .itemIndex = 0x55555555 }; constexpr struct pk_handle cbh1 { .bucketIndex = 0xAAAAAAAA, .itemIndex = 0x55555555 }; constexpr bool ret1 = (ch1 == cbh1); - PK_LOGV_INF("pk_handle constexpr operator== 000: %b\n", ret1); + PK_LOGV_INF("pk_handle constexpr operator== 000: %s\n", ret1 ? "true" : "false"); constexpr struct pk_handle ch2 { .bucketIndex = 0x00000000, .itemIndex = 0x00000000 }; constexpr struct pk_handle cbh2 { .bucketIndex = 0xFFFFFFFF, .itemIndex = 0xFFFFFFFF }; constexpr bool ret2 = (ch2 == cbh2); - PK_LOGV_INF("pk_handle constexpr operator== 001: %b\n", ret2); + PK_LOGV_INF("pk_handle constexpr operator== 001: %s\n", ret2 ? "true" : "false"); h.bucketIndex = 0xCAFE; h.itemIndex = 0xBABE; bh.bucketIndex = 0xCAFE; bh.itemIndex = 0xBABE; res = h == bh; - PK_LOGV_INF("pk_handle operator== 000: %b\n", res); + PK_LOGV_INF("pk_handle operator== 000: %s\n", res ? "true" : "false"); h.bucketIndex = 0x00000000; h.itemIndex = 0x00000000; bh.bucketIndex = 0xFFFFFFFF; bh.itemIndex = 0xFFFFFFFF; res = h == bh; - PK_LOGV_INF("pk_handle operator== 001: %b\n", res); + PK_LOGV_INF("pk_handle operator== 001: %s\n", res ? "true" : "false"); } // pk_handle_validate_constexpr @@ -70,26 +70,26 @@ int main(int argc, char *argv[]) struct custom_handle ch1; ch1.bucketIndex = 0xAAAAAAAA; ch1.itemIndex = 0x55555555; struct custom_handle cbh1; cbh1.bucketIndex = 0xAAAAAAAA; cbh1.itemIndex = 0x55555555; bool ret1 = (ch1 == cbh1); - PK_LOGV_INF("custom_handle constexpr operator== 000: %b\n", ret1); + PK_LOGV_INF("custom_handle constexpr operator== 000: %s\n", ret1 ? "true" : "false"); struct custom_handle ch2; ch2.bucketIndex = 0x00000000; ch2.itemIndex = 0x00000000; struct custom_handle cbh2; cbh2.bucketIndex = 0xFFFFFFFF; cbh2.itemIndex = 0xFFFFFFFF; bool ret2 = (ch2 == cbh2); - PK_LOGV_INF("custom_handle constexpr operator== 001: %b\n", ret2); + PK_LOGV_INF("custom_handle constexpr operator== 001: %s\n", ret2 ? "true" : "false"); h.bucketIndex = 0xCAFE; h.itemIndex = 0xBABE; bh.bucketIndex = 0xCAFE; bh.itemIndex = 0xBABE; res = h == bh; - PK_LOGV_INF("custom_handle operator== 000: %b\n", res); + PK_LOGV_INF("custom_handle operator== 000: %s\n", res ? "true" : "false"); h.bucketIndex = 0x00000000; h.itemIndex = 0x00000000; bh.bucketIndex = 0xFFFFFFFF; bh.itemIndex = 0xFFFFFFFF; res = h == bh; - PK_LOGV_INF("custom_handle operator== 001: %b\n", res); + PK_LOGV_INF("custom_handle operator== 001: %s\n", res ? "true" : "false"); } return 0; |
