From 5d10ffdef5ded79d9309625530942671cc461a8b Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Fri, 1 Oct 2010 08:14:03 +0000 Subject: [PATCH] Add a couple of casts to make it compile. svn path=/trunk/; revision=34306 --- epan/dissectors/packet-reload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epan/dissectors/packet-reload.c b/epan/dissectors/packet-reload.c index 6eef484c81..71c58d6792 100644 --- a/epan/dissectors/packet-reload.c +++ b/epan/dissectors/packet-reload.c @@ -1366,7 +1366,7 @@ dissect_reload_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset += MIN_HDR_LENGTH; - if ((offset + via_list_length) > msg_length) { + if (((guint)offset + via_list_length) > msg_length) { expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_ERROR, "Truncated reload packet"); return MIN_HDR_LENGTH; } @@ -1381,7 +1381,7 @@ dissect_reload_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } offset += via_list_length; - if ((offset + destination_list_length) > msg_length) { + if (((guint)offset + destination_list_length) > msg_length) { expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_ERROR, "Truncated reload packet"); return offset; } @@ -1396,7 +1396,7 @@ dissect_reload_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } offset += destination_list_length; - if ((offset + options_length) > msg_length) { + if (((guint)offset + options_length) > msg_length) { expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_ERROR, "Truncated reload packet"); return offset; }