aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-01-13 22:27:59 +0000
committerGuy Harris <guy@alum.mit.edu>2012-01-13 22:27:59 +0000
commitc7857a522bc45bd2858211eaec8e7881d71c8169 (patch)
treeca6d8b5baf3bf9bb6423a61da7ca3b019bf63c03 /file.c
parentbf87bab69720e6256b2ed77f6f7de23eb771773a (diff)
In all these cases, i is a guint32, so if c_match is <= i, c_match fits
in a guint32; cast it to one to squelch compiler warnings. svn path=/trunk/; revision=40487
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/file.c b/file.c
index e9deb3b689..afbb674471 100644
--- a/file.c
+++ b/file.c
@@ -3013,7 +3013,7 @@ match_ascii_and_unicode(capture_file *cf, frame_data *fdata, void *criterion)
}
else {
g_assert(i>=c_match);
- i -= c_match;
+ i -= (guint32)c_match;
c_match = 0;
}
}
@@ -3058,7 +3058,7 @@ match_ascii(capture_file *cf, frame_data *fdata, void *criterion)
}
else {
g_assert(i>=c_match);
- i -= c_match;
+ i -= (guint32)c_match;
c_match = 0;
}
i += 1;
@@ -3104,7 +3104,7 @@ match_unicode(capture_file *cf, frame_data *fdata, void *criterion)
}
else {
g_assert(i>=(c_match*2));
- i -= c_match*2;
+ i -= (guint32)c_match*2;
c_match = 0;
}
i += 1;
@@ -3144,7 +3144,7 @@ match_binary(capture_file *cf, frame_data *fdata, void *criterion)
}
else {
g_assert(i>=c_match);
- i -= c_match;
+ i -= (guint32)c_match;
c_match = 0;
}
i += 1;