]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
mpv: use size_t for count, not u32
authorJustin Viiret <justin.viiret@intel.com>
Wed, 6 Apr 2016 04:44:22 +0000 (14:44 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 20 Apr 2016 03:34:55 +0000 (13:34 +1000)
Small cleanup in processReportsForRange.

src/nfa/mpv.c

index 5f4910a6528f42bb64666664371a34ca323d718f..7ae15d245218bd817da73d3f274820ef433c0fe1 100644 (file)
@@ -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");