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:
parent
bf87bab697
commit
c7857a522b
8
file.c
8
file.c
|
@ -3013,7 +3013,7 @@ match_ascii_and_unicode(capture_file *cf, frame_data *fdata, void *criterion)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_assert(i>=c_match);
|
g_assert(i>=c_match);
|
||||||
i -= c_match;
|
i -= (guint32)c_match;
|
||||||
c_match = 0;
|
c_match = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3058,7 +3058,7 @@ match_ascii(capture_file *cf, frame_data *fdata, void *criterion)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_assert(i>=c_match);
|
g_assert(i>=c_match);
|
||||||
i -= c_match;
|
i -= (guint32)c_match;
|
||||||
c_match = 0;
|
c_match = 0;
|
||||||
}
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
|
@ -3104,7 +3104,7 @@ match_unicode(capture_file *cf, frame_data *fdata, void *criterion)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_assert(i>=(c_match*2));
|
g_assert(i>=(c_match*2));
|
||||||
i -= c_match*2;
|
i -= (guint32)c_match*2;
|
||||||
c_match = 0;
|
c_match = 0;
|
||||||
}
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
|
@ -3144,7 +3144,7 @@ match_binary(capture_file *cf, frame_data *fdata, void *criterion)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_assert(i>=c_match);
|
g_assert(i>=c_match);
|
||||||
i -= c_match;
|
i -= (guint32)c_match;
|
||||||
c_match = 0;
|
c_match = 0;
|
||||||
}
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
|
|
Loading…
Reference in New Issue