Fix compiler warning. - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorMike Pall <mike>2013年08月22日 19:29:09 +0200
committerMike Pall <mike>2013年08月22日 19:29:09 +0200
commita6936be814adee5d4d61e729d91b2c3dd8e16e6e (patch)
treeee18d62157f5ac39adfc0269c25e2d6a60559d79
parentfd1a8ddb3ce5f22724b411c4dbc2550bd8776eba (diff)
downloadgsl-shell-a6936be814adee5d4d61e729d91b2c3dd8e16e6e.tar.gz
Fix compiler warning.
Diffstat
-rw-r--r--src/host/buildvm_asm.c 2
1 files changed, 1 insertions, 1 deletions
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",
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月23日 07:46:00 +0000

AltStyle によって変換されたページ (->オリジナル) /