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/8f362e98 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/8f362e98 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/8f362e98 Branch: refs/heads/cjansen-cpp-client Commit: 8f362e984d97f0f48083da0532108860b4594f38 Parents: 7bca703 Author: Alan Conway <[email protected]> Authored: Wed Jun 10 17:43:25 2015 -0400 Committer: Alan Conway <[email protected]> Committed: Thu Jun 11 19:19:25 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/8f362e98/proton-c/src/codec/codec.c ---------------------------------------------------------------------- diff --git a/proton-c/src/codec/codec.c b/proton-c/src/codec/codec.c index e8750fe..fd8caab 100644 --- a/proton-c/src/codec/codec.c +++ b/proton-c/src/codec/codec.c @@ -1164,7 +1164,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: [email protected] For additional commands, e-mail: [email protected]
