Github user alanconway commented on a diff in the pull request:

    https://github.com/apache/qpid-dispatch/pull/172#discussion_r126156980
  
    --- Diff: src/buffer.c ---
    @@ -83,7 +86,28 @@ size_t qd_buffer_size(qd_buffer_t *buf)
     void qd_buffer_insert(qd_buffer_t *buf, size_t len)
     {
         buf->size += len;
    -    assert(buf->size <= buffer_size);
    +    assert(buf->size <= BUFFER_SIZE);
    +}
    +
    +void qd_buffer_add_fanout(qd_buffer_t *buf)
    +{
    +    buf->fanout++;
    +}
    +
    +size_t qd_buffer_fanout(qd_buffer_t *buf)
    +{
    +    return buf->fanout;
    +}
    +
    +
    +unsigned char *qd_buffer_at(qd_buffer_t *buf, size_t len)
    +{
    +    assert(len >=0);
    --- End diff --
    
    Redundant, size_t is unsigned, it can never be < 0


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to