From: Justin Viiret Date: Wed, 6 Apr 2016 04:44:22 +0000 (+1000) Subject: mpv: use size_t for count, not u32 X-Git-Tag: v4.2.0^2~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9852ac0091f3e91461caff123235fa7f68f401c6;p=thirdparty%2Fvectorscan.git mpv: use size_t for count, not u32 Small cleanup in processReportsForRange. --- diff --git a/src/nfa/mpv.c b/src/nfa/mpv.c index 5f4910a6..7ae15d24 100644 --- a/src/nfa/mpv.c +++ b/src/nfa/mpv.c @@ -176,7 +176,7 @@ char processReportsForRange(const struct mpv *m, u8 *reporters, return MO_CONTINUE_MATCHING; } - for (u32 i = 2; i <= length; i++) { + for (size_t i = 2; i <= length; i++) { for (u32 j = 0; j < rl_count; j++) { if (cb(first_offset + i, rl[j], ctxt) == MO_HALT_MATCHING) { DEBUG_PRINTF("bailing\n");