aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-05-08 18:30:35 -0700
committerGuy Harris <guy@alum.mit.edu>2015-05-09 01:31:01 +0000
commit17ea21f90206b46f942ed06cd1afbddf3b8c02e9 (patch)
treebbfd1ed09eff6fee9c51e470def3f98f7c516024 /wiretap
parent53025444b7e2f51cf478d01307a9ef8ef1e03b6a (diff)
Make everything unsigned.
The LHS of the & operation is unsigned; make the RHS unsigned as well. That squelches a Sun/Oracle C warning. Change-Id: I6983cc89603a512020b8e8b560c00632de6b2fb3 Reviewed-on: https://code.wireshark.org/review/8363 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/file_wrappers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c
index babe4fa23a..92f8f7b961 100644
--- a/wiretap/file_wrappers.c
+++ b/wiretap/file_wrappers.c
@@ -562,7 +562,7 @@ zlib_read(FILE_T state, unsigned char *buf, unsigned int count)
if (crc != strm->adler && !state->dont_check_crc) {
state->err = WTAP_ERR_DECOMPRESS;
state->err_info = "bad CRC";
- } else if (len != (strm->total_out & 0xffffffffL)) {
+ } else if (len != (strm->total_out & 0xffffffffUL)) {
state->err = WTAP_ERR_DECOMPRESS;
state->err_info = "length field wrong";
}