From 93ecc5f231f57bf0e835d36b614233833f92bc44 Mon Sep 17 00:00:00 2001
From: Jason Hiser <jdhiser@gmail.com>
Date: Thu, 16 May 2019 00:45:57 +0000
Subject: [PATCH] changed int8_t to char for string::value_type for when
 int8_t!=char

---
 push64_relocs.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/push64_relocs.cpp b/push64_relocs.cpp
index 2dcc98b94..70574f3ca 100644
--- a/push64_relocs.cpp
+++ b/push64_relocs.cpp
@@ -100,7 +100,7 @@ void Push64Relocs_t::HandlePush64Relocation(Instruction_t *insn, Relocation_t *r
 	 * Step 1: Change the push to a call 0.
 	 */
 
-	auto call_databits = string({int8_t(0xe8), 0x00, 0x00, 0x00, 0x00 });
+	auto call_databits = string({char(0xe8), 0x00, 0x00, 0x00, 0x00 });
 	insn->setDataBits(call_databits);
 	insn->setTarget(add_insn); // Comment
 	insn->setFallthrough(nullptr);
@@ -113,7 +113,7 @@ void Push64Relocs_t::HandlePush64Relocation(Instruction_t *insn, Relocation_t *r
 	auto add_databits = string();
 	if(m_firp.getArchitectureBitWidth()==64)
 		add_databits+=string({0x48});	 // rex prefix to convert esp->rsp
-	add_databits+=string({(int8_t)0x81, 0x2c, 0x24, (int8_t)0xff, (int8_t)0xff, (int8_t)0xff, (int8_t)0xff} );
+	add_databits+=string({(char)0x81, 0x2c, 0x24, (char)0xff, (char)0xff, (char)0xff, (char)0xff} );
 	add_insn->setDataBits(add_databits);
 
 	/*
-- 
GitLab