From: Justin Viiret Date: Mon, 15 Feb 2016 05:17:58 +0000 (+1100) Subject: Make comparison signed (fix warning) X-Git-Tag: v4.2.0^2~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8f394d8d6e18845cf488d1649e3fcff690b038;p=thirdparty%2Fvectorscan.git Make comparison signed (fix warning) --- diff --git a/src/rose/program_runtime.h b/src/rose/program_runtime.h index 3fbaeb32..3d25d682 100644 --- a/src/rose/program_runtime.h +++ b/src/rose/program_runtime.h @@ -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);