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
This commit is contained in:
Guy Harris 2012-01-13 22:27:59 +00:00
parent bf87bab697
commit c7857a522b
1 changed files with 4 additions and 4 deletions

8
file.c
View File

@ -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;