You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2018/11/20 15:15:57 UTC

qpid-proton git commit: PROTON-1887: [c] fix signed/unsigned warning

Repository: qpid-proton
Updated Branches:
  refs/heads/master 0bdba37da -> d1d55df20


PROTON-1887: [c] fix signed/unsigned warning


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

Branch: refs/heads/master
Commit: d1d55df2044941121c582bc7ac38d06b594cef52
Parents: 0bdba37
Author: Alan Conway <ac...@redhat.com>
Authored: Tue Nov 20 09:44:18 2018 -0500
Committer: Alan Conway <ac...@redhat.com>
Committed: Tue Nov 20 09:44:18 2018 -0500

----------------------------------------------------------------------
 c/tests/connection_driver_test.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d1d55df2/c/tests/connection_driver_test.cpp
----------------------------------------------------------------------
diff --git a/c/tests/connection_driver_test.cpp b/c/tests/connection_driver_test.cpp
index 175a77d..62b60ff 100644
--- a/c/tests/connection_driver_test.cpp
+++ b/c/tests/connection_driver_test.cpp
@@ -310,7 +310,7 @@ void send_receive_message(const std::string &tag, pn_test::driver_pair &d) {
     pn_delivery_t *sd = pn_delivery(l, pn_dtag(tag.data(), tag.size()));
     d.server.handler.delivery = NULL;
     CHECK(pn_delivery_current(sd));
-    CHECK(tag.size() == pn_link_send(l, tag.data(), tag.size()));
+    CHECK(ssize_t(tag.size()) == pn_link_send(l, tag.data(), tag.size()));
     pn_delivery_settle(sd);
     d.run();
     pn_delivery_t *rd = d.server.handler.delivery;
@@ -318,7 +318,7 @@ void send_receive_message(const std::string &tag, pn_test::driver_pair &d) {
     CHECKED_IF(rd) {
       CHECK(pn_delivery_current(rd));
       std::string rbuf(tag.size() * 2, 'x');
-      CHECK(tag.size() ==
+      CHECK(ssize_t(tag.size()) ==
             pn_link_recv(pn_delivery_link(rd), &rbuf[0], rbuf.size()));
       rbuf.resize(tag.size());
       CHECK(tag == rbuf);


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