fix: Various MSVC warnings

This commit is contained in:
WerWolv
2025-02-01 20:54:00 +01:00
parent ed37a3711f
commit 645b43e9cc
7 changed files with 20 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ namespace hex::plugin::disasm {
m_instruction = nullptr;
auto mode = m_mode;
if (m_endian == true) {
if (bool(m_endian)) {
mode = cs_mode(u32(mode) | CS_MODE_LITTLE_ENDIAN);
} else {
mode = cs_mode(u32(mode) | CS_MODE_BIG_ENDIAN);