]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Make comparison signed (fix warning)
authorJustin Viiret <justin.viiret@intel.com>
Mon, 15 Feb 2016 05:17:58 +0000 (16:17 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 1 Mar 2016 00:36:09 +0000 (11:36 +1100)
src/rose/program_runtime.h

index 3fbaeb32cb49dec4da28ae192a9ee24ccc52a398..3d25d68244d1dc0517324ad882c4e8df18e6f77b 100644 (file)
@@ -849,7 +849,7 @@ hwlmcb_rv_t roseRunProgram(const struct RoseEngine *t,
     for (;;) {
         assert(ISALIGNED_N(pc, ROSE_INSTR_MIN_ALIGN));
         assert(pc >= pc_base);
-        assert((pc - pc_base) < t->size);
+        assert((size_t)(pc - pc_base) < t->size);
         const u8 code = *(const u8 *)pc;
         assert(code <= ROSE_INSTR_END);