Remove a cast that now causes rather than squelching warnings.
We're now comparing an unsigned with an expression made mostly of unsigned, so there's no need to cast the expression to long to squelch signed vs. unsigned warnings. Change-Id: I3b8c6f6faf26a9c252eb55d9e69fb298a3ad4c3b Reviewed-on: https://code.wireshark.org/review/20347 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
b98bb5188c
commit
4bd3c4d44d
|
@ -646,7 +646,7 @@ process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer,
|
|||
|
||||
switch(src_desc->input_type) {
|
||||
case K12_PORT_ATMPVC:
|
||||
if ((long)(buffer_offset + length + K12_PACKET_OFFSET_CID) < record_len) {
|
||||
if (buffer_offset + length + K12_PACKET_OFFSET_CID < record_len) {
|
||||
phdr->pseudo_header.k12.input_info.atm.vp = pntoh16(buffer + buffer_offset + length + K12_PACKET_OFFSET_VP);
|
||||
phdr->pseudo_header.k12.input_info.atm.vc = pntoh16(buffer + buffer_offset + length + K12_PACKET_OFFSET_VC);
|
||||
phdr->pseudo_header.k12.input_info.atm.cid = *((unsigned char*)(buffer + buffer_offset + length + K12_PACKET_OFFSET_CID));
|
||||
|
|
Loading…
Reference in New Issue