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

    https://github.com/apache/trafficserver/pull/542#discussion_r58233222
  
    --- Diff: proxy/hdrs/MIME.cc ---
    @@ -473,7 +473,8 @@ mime_hdr_set_accelerator_slotnum(MIMEHdrImpl *mh, 
int32_t slot_id, uint32_t slot
     inline void
     mime_hdr_set_accelerators_and_presence_bits(MIMEHdrImpl *mh, MIMEField 
*field)
     {
    -  int slot_id, slot_num;
    +  int slot_id;
    +  ptrdiff_t slot_num;
    --- End diff --
    
    We can remove ``slot_num < 0`` but ``slot_num >= 
MIME_FIELD_SLOTNUM_UNKNOWN`` is still needed.
    Because the value of ``MIME_FIELD_SLOTNUM_UNKNOWN`` is 14, so if the 
slot_num is 15, we need to set ``MIME_FIELD_SLOTNUM_UNKNOWN`` insetead of the 
15.


---
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.
---

Reply via email to