Squelch a "signed vs. unsigned comparison" warning (which warned of a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 13 Sep 2001 20:42:13 +0000 (20:42 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 13 Sep 2001 20:42:13 +0000 (20:42 +0000)
real problem, if "byte_span" were 0 - that would only happen if
"bitoffset" and "bitlength" were both 0, and "bitlength" should never be
0).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3929 f5534014-38df-0310-8fa8-9805f1628bb7

packet-ranap.c

index 8ba191296d7b2a0d0a8992b87ebba62e1a5b5637..f7a99a0b4bd88dac88faf8c1f6cc8078afee8fc9 100644 (file)
@@ -3,7 +3,7 @@
  * Based on 3GPP TS 25.413 V3.4.0
  * Copyright 2001, Martin Held <Martin.Held@icn.siemens.de>
  *
- * $Id: packet-ranap.c,v 1.6 2001/06/18 02:17:51 guy Exp $
+ * $Id: packet-ranap.c,v 1.7 2001/09/13 20:42:13 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -1110,7 +1110,7 @@ proto_tree_add_bitstring(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint offs
    guint8              bitstr[128];
    char                        buf[256] = "\0";
    header_field_info   *hf_info_p;
-   guint               byte_span;
+   gint                        byte_span;
    gint                        initial_offset = offset;
 
    memset(bitstr, 0, 128);