diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/immediate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/immediate.c b/src/arch/immediate.c index 3bc4712..c57919f 100644 --- a/src/arch/immediate.c +++ b/src/arch/immediate.c @@ -342,7 +342,7 @@ static char *g_imm_operand_get_text(const GImmOperand *operand, const exe_format char *result; /* Chaîne à retourner */ char *label; /* Etiquette de symbole */ SymbolType symtype; /* Type de symbole */ - vmpa_t offset; /* Décallage final constaté */ + vmpa_t address; /* Décallage final constaté */ char buffer[256]; /* Complément d'information */ /* Valeur brute */ @@ -435,15 +435,15 @@ static char *g_imm_operand_get_text(const GImmOperand *operand, const exe_format if (operand->size == AOS_32_BITS_SIGNED || operand->size == AOS_32_BITS_UNSIGNED) /* FIXME */ { - offset = operand->unsigned_imm.val32; /* FIXME !!! */ + address = operand->unsigned_imm.val32; /* FIXME !!! */ - if (resolve_exe_symbol(format, &label, &symtype, &offset)) + if (resolve_exe_symbol(format, &label, &symtype, &address)) { switch (symtype) { case STP_SECTION: - if (offset == 0) snprintf(buffer, 256, " <%s>", label); - else snprintf(buffer, 256, " <%s+0x%llx>", label, offset); + if (address == 0) snprintf(buffer, 256, " <%s>", label); + else snprintf(buffer, 256, " <%s+0x%llx>", label, address); result = stradd(result, buffer); break; |