From 4bd3c4d44ddcdf8e98fdf08a425e3a68e9b18395 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 2 Mar 2017 15:02:14 -0800 Subject: 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 --- wiretap/k12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiretap/k12.c b/wiretap/k12.c index 71c07a19eb..5196a0e1a6 100644 --- a/wiretap/k12.c +++ b/wiretap/k12.c @@ -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)); -- cgit v1.2.1