From 5a68f639e4f01604cc7bfc8d313f583a8137e3d3 Mon Sep 17 00:00:00 2001 From: $_9 <62421451+supernova9sky@users.noreply.github.com> Date: Sun, 2 Jun 2024 15:23:23 +0200 Subject: [PATCH] Fix zydis not compiling under -Werror (#507) --- src/Register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Register.c b/src/Register.c index 47244190..a06ed9a0 100644 --- a/src/Register.c +++ b/src/Register.c @@ -175,7 +175,7 @@ ZydisRegister ZydisRegisterGetLargestEnclosing(ZydisMachineMode mode, ZydisRegis [ZYDIS_REGCLASS_FLAGS] = { ZYDIS_REGISTER_FLAGS, ZYDIS_REGISTER_EFLAGS, ZYDIS_REGISTER_RFLAGS }, [ZYDIS_REGCLASS_IP ] = { ZYDIS_REGISTER_IP , ZYDIS_REGISTER_EIP , ZYDIS_REGISTER_RIP }, }; - ZYAN_ASSERT(reg_class < ZYAN_ARRAY_LENGTH(STATIC_MAPPING)); + ZYAN_ASSERT((ZyanUSize)reg_class < ZYAN_ARRAY_LENGTH(STATIC_MAPPING)); ZyanU8 mode_bits; switch (mode)