Make sure nspr_getv20recordsize() returns an unsigned value.
authorGuy Harris <guy@alum.mit.edu>
Thu, 2 Mar 2017 22:51:43 +0000 (14:51 -0800)
committerGuy Harris <guy@alum.mit.edu>
Thu, 2 Mar 2017 22:53:10 +0000 (22:53 +0000)
The record size fields are guint8, but NSPR_V20RECORDSIZE_2BYTES was
0x80, which has type int, promoting the result to int.  Make it 0x80U,
which means everything is unsigned.

This squelches a compiler warning.

Change-Id: I1c63e485352a90c7f675ab0dacaaeba794235b35
Reviewed-on: https://code.wireshark.org/review/20344
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/netscaler.c

index 13ec208849659e02804869ab46bda4049b37d9fe..f538bdc54183252572c1330d0859ac5c0baf916d 100644 (file)
@@ -128,7 +128,7 @@ typedef struct nspr_hd_v20
 ** The short header size can be 0-127 bytes long. If MS Bit of ph_RecordSize
 ** is set then record size has 2 bytes
 */
-#define NSPR_V20RECORDSIZE_2BYTES       0x80
+#define NSPR_V20RECORDSIZE_2BYTES       0x80U
 
 /* Performance Data Header with device number */
 typedef struct nspr_headerdev_v10