You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2016/05/03 13:45:54 UTC

qpid-dispatch git commit: NO-JIRA - Fixed a bug in the field test that affected the Ubuntu build

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 52979637c -> 68e71edc5


NO-JIRA - Fixed a bug in the field test that affected the Ubuntu build


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/68e71edc
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/68e71edc
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/68e71edc

Branch: refs/heads/master
Commit: 68e71edc5a0cf128e2046a5c1e0473401f862211
Parents: 5297963
Author: Ted Ross <tr...@redhat.com>
Authored: Tue May 3 07:45:11 2016 -0400
Committer: Ted Ross <tr...@redhat.com>
Committed: Tue May 3 07:45:11 2016 -0400

----------------------------------------------------------------------
 tests/field_test.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/68e71edc/tests/field_test.c
----------------------------------------------------------------------
diff --git a/tests/field_test.c b/tests/field_test.c
index 5d64b23..bc93a27 100644
--- a/tests/field_test.c
+++ b/tests/field_test.c
@@ -702,8 +702,9 @@ static char *test_prefix_hash(void *context)
     idx = 0;
     while (patterns[idx].pattern) {
         qd_field_iterator_t *iter = qd_address_iterator_string(patterns[idx].pattern, ITER_VIEW_ADDRESS_HASH);
-        int position;
-        qd_hash_retrieve_prefix(hash, iter, (void*) &position);
+        void *ptr;
+        qd_hash_retrieve_prefix(hash, iter, &ptr);
+        int position = (int) ((long) ptr);
         position--;
         if (position != patterns[idx].entry) {
             snprintf(error, 200, "Pattern: '%s', expected %d, got %d",


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org