diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2007-07-16 06:28:56 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2007-07-16 06:28:56 +0000 |
commit | cf526583e855cf7f5d452337416e711d4259e340 (patch) | |
tree | 9236f18fbce07675ed2e5af0f90203fa895a5dca /epan/dissectors/packet-diameter.c | |
parent | ae48b50f174ebb980b15cf960f587b86bdbbd598 (diff) | |
download | wireshark-cf526583e855cf7f5d452337416e711d4259e340.tar.gz wireshark-cf526583e855cf7f5d452337416e711d4259e340.tar.bz2 wireshark-cf526583e855cf7f5d452337416e711d4259e340.zip |
for MSVC (vendor_flag ? 12 : 8) is signed ...
well for gcc is either signed or unsigned (they are two literals!)
svn path=/trunk/; revision=22321
Diffstat (limited to 'epan/dissectors/packet-diameter.c')
-rw-r--r-- | epan/dissectors/packet-diameter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c index b84cd50a09..9f22b3aa04 100644 --- a/epan/dissectors/packet-diameter.c +++ b/epan/dissectors/packet-diameter.c @@ -290,7 +290,7 @@ static int dissect_diameter_avp(diam_ctx_t* c, tvbuff_t* tvb, int offset) { offset += 4; } - if ( len == (vendor_flag ? 12 : 8) ) return len; + if ( len == (guint32)(vendor_flag ? 12 : 8) ) return len; subtvb = tvb_new_subset(tvb,offset,len-(8+(vendor_flag?4:0)),len-(8+(vendor_flag?4:0))); |