diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/immediate.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/arch/immediate.c b/src/arch/immediate.c index 288b364..85d98a0 100644 --- a/src/arch/immediate.c +++ b/src/arch/immediate.c @@ -915,47 +915,51 @@ size_t g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax syntax, cha switch (operand->size) { case MDS_UNDEFINED: - result = snprintf(value, VMPA_MAX_SIZE, "<? undef value ?>"); + result = snprintf(value, IMM_MAX_SIZE, "<? undef value ?>"); break; case MDS_4_BITS_UNSIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (uint8_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (uint8_t)operand->raw); break; case MDS_8_BITS_UNSIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (uint8_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (uint8_t)operand->raw); break; case MDS_16_BITS_UNSIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (uint16_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (uint16_t)operand->raw); break; case MDS_32_BITS_UNSIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (uint32_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (uint32_t)operand->raw); break; case MDS_64_BITS_UNSIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (uint64_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (uint64_t)operand->raw); break; case MDS_4_BITS_SIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (int8_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (int8_t)operand->raw); break; case MDS_8_BITS_SIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (int8_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (int8_t)operand->raw); break; case MDS_16_BITS_SIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (int16_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (int16_t)operand->raw); break; case MDS_32_BITS_SIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (int32_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (int32_t)operand->raw); break; case MDS_64_BITS_SIGNED: - result = snprintf(value, VMPA_MAX_SIZE, format, (int64_t)operand->raw); + result = snprintf(value, IMM_MAX_SIZE, format, (int64_t)operand->raw); + break; + + default: + assert(false); break; } |