Fix -Wdeclaration-after-statement warning (ISO C90 forbids mixed declarations and code) (#313)

This commit is contained in:
Anonymous Maarten 2026-07-25 16:58:34 +02:00 committed by GitHub
parent 5500e13ed5
commit baceff9d12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -656,9 +656,10 @@ x86_bc_insn_expand(yasm_bytecode *bc, int span, long old_val, long new_val,
x86_insn *insn = (x86_insn *)bc->contents;
x86_effaddr *x86_ea = insn->x86_ea;
yasm_effaddr *ea = NULL;
yasm_value *imm;
if (x86_ea != NULL)
ea = &x86_ea->ea;
yasm_value *imm = insn->imm;
imm = insn->imm;
if (ea && span == 1) {
/* Change displacement length into word-sized */