qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [14/50] [abbrv] qpid-proton git commit: NO-JIRA: Fix bug in pn_data_point, saving point when parent = current = 0.
Date Tue, 08 Sep 2015 16:37:32 GMT
NO-JIRA: Fix bug in pn_data_point, saving point when parent = current = 0.


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

Branch: refs/heads/proton-go
Commit: d98868ccfb50a12fb8e8dca7e7059e1c7a6931d2
Parents: 6ba050a
Author: Alan Conway <aconway@redhat.com>
Authored: Wed Jun 10 17:43:25 2015 -0400
Committer: Alan Conway <aconway@redhat.com>
Committed: Mon Jul 6 12:17:33 2015 -0400

----------------------------------------------------------------------
 proton-c/src/codec/codec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d98868cc/proton-c/src/codec/codec.c
----------------------------------------------------------------------
diff --git a/proton-c/src/codec/codec.c b/proton-c/src/codec/codec.c
index c00e79a..573887e 100644
--- a/proton-c/src/codec/codec.c
+++ b/proton-c/src/codec/codec.c
@@ -1156,7 +1156,7 @@ pn_handle_t pn_data_point(pn_data_t *data)
 bool pn_data_restore(pn_data_t *data, pn_handle_t point)
 {
   pn_shandle_t spoint = (pn_shandle_t) point;
-  if (spoint < 0 && ((size_t) (-spoint)) <= data->size) {
+  if (spoint <= 0 && ((size_t) (-spoint)) <= data->size) {
     data->parent = -((pn_shandle_t) point);
     data->current = 0;
     return true;


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


Mime
View raw message