From 6e8f394d8d6e18845cf488d1649e3fcff690b038 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Mon, 15 Feb 2016 16:17:58 +1100 Subject: [PATCH] Make comparison signed (fix warning) --- src/rose/program_runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);