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.
1 file changed