commit | 7d4c1035c18c66dd19a2ed5bb673b52885f7e4f6 | [log] [tgz] |
---|---|---|
author | Travis Cross <tc@traviscross.com> | Wed Jul 02 14:46:53 2014 +0000 |
committer | Travis Cross <tc@traviscross.com> | Wed Jul 02 16:28:54 2014 +0000 |
tree | 34f8c1bb90c879f8e9b0b95601a05cf4180c5d0d | |
parent | 83439f72035d1ac559d389229afef4bdc8885b9e [diff] |
Fix cast to include entire expression Elsewhere in the code this calculation casts the entire result to an unsigned int. Here we were just casting the octet length of the packet before doing the subtraction, which has different semantics. Casting the entire expression seems more reasonable.