diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/immediate.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/arch/immediate.c b/src/arch/immediate.c index 18c798d..88426de 100644 --- a/src/arch/immediate.c +++ b/src/arch/immediate.c @@ -1124,7 +1124,22 @@ static char *g_imm_operand_build_tooltip(const GImmOperand *operand, const GLoad char *conv; /* Affichage de la Conversion */ if (operand->raw <= UCHAR_MAX && isprint(operand->raw)) - asprintf(&result, _("Character: '%c'"), (char)operand->raw); + switch (operand->raw) + { + case '&': + asprintf(&result, _("Character: '&'")); + break; + case '<': + asprintf(&result, _("Character: '<'")); + break; + case '>': + asprintf(&result, _("Character: '>'")); + break; + default: + asprintf(&result, _("Character: '%c'"), (char)operand->raw); + break; + } + else asprintf(&result, _("Character: <not printable>")); |