Skip to content

Commit

Permalink
Fix zydis not compiling under -Werror (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
supernova9sky committed Jun 2, 2024
1 parent 6bedd6c commit 5a68f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Register.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5a68f63

Please sign in to comment.