Make sure nspr_getv20recordsize() returns an unsigned value.
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>
This commit is contained in:
parent
b019c5931c
commit
b98bb5188c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue