"tvb_reported_length_remaining()" returns a "gint", so assign its return
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 6 Oct 2004 17:37:47 +0000 (17:37 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 6 Oct 2004 17:37:47 +0000 (17:37 +0000)
value to a "gint".

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

epan/dissectors/packet-icep.c

index f0144f40784b76453d3d7b818ef67a6a172f790e..0609b9c609ad5e252faac037d25f16f49ba574cf 100644 (file)
@@ -544,7 +544,7 @@ static void dissect_ice_params(proto_tree *tree, tvbuff_t *tvb,
         */
        
        gint32 size = 0;
-       guint32 tvb_data_remained = 0;
+       gint tvb_data_remained = 0;
        
        (*consumed) = 0;
        
@@ -609,7 +609,7 @@ static void dissect_ice_params(proto_tree *tree, tvbuff_t *tvb,
        /* check if I got all encapsulated data */
        tvb_data_remained = tvb_reported_length_remaining(tvb, offset);
        
-       if ( ((gint32) tvb_data_remained) < ( size - ICEP_MIN_PARAMS_SIZE ) ) {
+       if ( tvb_data_remained < ( size - ICEP_MIN_PARAMS_SIZE ) ) {
                
                if (tree)
                        proto_tree_add_text(tree, tvb, offset, -1,