From 6065203154d3e1e3e8362cf4147f53a134a80936 Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Wed, 21 Nov 2018 13:30:16 -0800 Subject: [PATCH] Fix tautological out of range compare --- tools/unicornomatic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/unicornomatic.c b/tools/unicornomatic.c index 1e932180..b4c74d20 100644 --- a/tools/unicornomatic.c +++ b/tools/unicornomatic.c @@ -178,7 +178,7 @@ void step_tracing(struct cpu_state *cpu, struct tlb *tlb, uc_engine *uc) { uc_interrupt = -1; dword_t eip = uc_getreg(uc, UC_X86_REG_EIP); // intercept cpuid and rdtsc - char code[2]; + uint8_t code[2]; uc_read(uc, eip, code, sizeof(code)); if (code[0] == 0x0f && (code[1] == 0x31 || code[1] == 0xa2)) { if (code[1] == 0x31) {