From c62cd21c896775573cd5f711cee87dc95c3c0c89 Mon Sep 17 00:00:00 2001 From: flobernd Date: Thu, 21 Sep 2017 16:53:23 +0200 Subject: [PATCH] Fixed formatting of signed 32-bit immediate operands --- src/Formatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formatter.c b/src/Formatter.c index d85b22b..8306525 100644 --- a/src/Formatter.c +++ b/src/Formatter.c @@ -375,7 +375,7 @@ static ZydisStatus ZydisFormatterPrintImmediateIntel(const ZydisFormatter* forma buffer, bufferLen, (uint16_t)operand->imm.value.u, 2, ZYDIS_TRUE, ZYDIS_TRUE); case 32: return ZydisPrintHexU( - buffer, bufferLen, (int32_t)operand->imm.value.u, 2, ZYDIS_TRUE, ZYDIS_TRUE); + buffer, bufferLen, (uint32_t)operand->imm.value.u, 2, ZYDIS_TRUE, ZYDIS_TRUE); case 64: return ZydisPrintHexU( buffer, bufferLen, operand->imm.value.u, 2, ZYDIS_TRUE, ZYDIS_TRUE);