From a6936be814adee5d4d61e729d91b2c3dd8e16e6e Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 22 Aug 2013 19:29:09 +0200 Subject: [PATCH] Fix compiler warning. --- src/host/buildvm_asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/host/buildvm_asm.c b/src/host/buildvm_asm.c index f18d1493..6117c7ed 100644 --- a/src/host/buildvm_asm.c +++ b/src/host/buildvm_asm.c @@ -100,7 +100,7 @@ static void emit_asm_wordreloc(BuildCtx *ctx, uint8_t *p, int n, fprintf(ctx->fp, "\tblx %s\n", sym); } else if ((ins & 0x0e000000u) == 0x0a000000u) { fprintf(ctx->fp, "\t%s%.2s %s\n", (ins & 0x01000000u) ? "bl" : "b", - "eqnecsccmiplvsvchilsgeltgtle" + 2*(ins >> 28), sym); + &"eqnecsccmiplvsvchilsgeltgtle"[2*(ins >> 28)], sym); } else { fprintf(stderr, "Error: unsupported opcode %08x for %s symbol relocation.\n",