You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/07/06 19:55:20 UTC
[07/10] lucy git commit: Fix pointer cast warnings
Fix pointer cast warnings
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/044712a2
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/044712a2
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/044712a2
Branch: refs/heads/master
Commit: 044712a2efcb2b784b31303f0d276c1ebe7a98cc
Parents: 9166d2c
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed Jul 6 19:00:10 2016 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed Jul 6 19:05:42 2016 +0200
----------------------------------------------------------------------
core/Lucy/Test/Util/TestNumberUtils.c | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/044712a2/core/Lucy/Test/Util/TestNumberUtils.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Test/Util/TestNumberUtils.c b/core/Lucy/Test/Util/TestNumberUtils.c
index 0835b08..f9cf3a1 100644
--- a/core/Lucy/Test/Util/TestNumberUtils.c
+++ b/core/Lucy/Test/Util/TestNumberUtils.c
@@ -122,8 +122,7 @@ test_ci32(TestBatchRunner *runner) {
NumUtil_skip_cint(&skip);
if (decode > limit) { THROW(ERR, "overrun"); }
}
- TEST_TRUE(runner, skip == decode, "skip %" PRIu64 " == %" PRIu64,
- (uint64_t)skip, (uint64_t)decode);
+ TEST_TRUE(runner, skip == decode, "skip %p == %p", skip, decode);
}
target = encoded;
@@ -172,16 +171,14 @@ test_cu32(TestBatchRunner *runner) {
NumUtil_skip_cint(&skip);
if (decode > limit) { THROW(ERR, "overrun"); }
}
- TEST_TRUE(runner, skip == decode, "skip %lu == %lu",
- (unsigned long)skip, (unsigned long)decode);
+ TEST_TRUE(runner, skip == decode, "skip %p == %p", skip, decode);
target = encoded;
for (size_t i = 0; i < count; i++) {
NumUtil_encode_padded_cu32((uint32_t)ints[i], &target);
}
TEST_TRUE(runner, target == limit,
- "padded cu32 uses 5 bytes (%lu == %lu)", (unsigned long)target,
- (unsigned long)limit);
+ "padded cu32 uses 5 bytes (%p == %p)", target, limit);
decode = encoded;
skip = encoded;
for (size_t i = 0; i < count; i++) {
@@ -190,8 +187,8 @@ test_cu32(TestBatchRunner *runner) {
NumUtil_skip_cint(&skip);
if (decode > limit) { THROW(ERR, "overrun"); }
}
- TEST_TRUE(runner, skip == decode, "skip padded %lu == %lu",
- (unsigned long)skip, (unsigned long)decode);
+ TEST_TRUE(runner, skip == decode, "skip padded %p == %p", skip,
+ decode);
}
target = encoded;
@@ -234,8 +231,7 @@ test_ci64(TestBatchRunner *runner) {
if (decode > limit) { THROW(ERR, "overrun"); }
NumUtil_skip_cint(&skip);
}
- TEST_TRUE(runner, skip == decode, "skip %lu == %lu",
- (unsigned long)skip, (unsigned long)decode);
+ TEST_TRUE(runner, skip == decode, "skip %p == %p", skip, decode);
}
target = encoded;
@@ -285,8 +281,7 @@ test_cu64(TestBatchRunner *runner) {
if (decode > limit) { THROW(ERR, "overrun"); }
NumUtil_skip_cint(&skip);
}
- TEST_TRUE(runner, skip == decode, "skip %lu == %lu",
- (unsigned long)skip, (unsigned long)decode);
+ TEST_TRUE(runner, skip == decode, "skip %p == %p", skip, decode);
}
target = encoded;