diff options
| author | 2026-03-24 15:44:25 +1100 | |
|---|---|---|
| committer | 2026-03-25 00:54:58 +1100 | |
| commit | a4ba1e57ca1f1e164c6f9ffbecd427df64866486 (patch) | |
| tree | 391a63eed7a5817965a8215d74295ebcfe24bf63 /src/devices/cpu | |
| parent | f97a8a76ee1c8aafbc974a77af0bc16c8036312c (diff) | |
Fixed various things that C++20 doesn't allow:
* cpu/i386/i386dasm.cpp, frontend/mame/infoxml.cpp, dec/pdp1_v.cpp:
Avoid arithmetic between different enum types.
* frontend/mame/cheat.cpp: Default-construct XML parser options.
* emu/validity.cpp: Avoid use of volatile assignement result as value.
* ui/devopt.cpp: UTF-8 strings will use a distinct character type.
Diffstat (limited to 'src/devices/cpu')
| -rw-r--r-- | src/devices/cpu/i386/i386dasm.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/devices/cpu/i386/i386dasm.h b/src/devices/cpu/i386/i386dasm.h index 551a077d9ca..4a887958278 100644 --- a/src/devices/cpu/i386/i386dasm.h +++ b/src/devices/cpu/i386/i386dasm.h @@ -105,14 +105,12 @@ private: THREE_BYTE /* [prefix] 0f op1 op2 and then mod/rm */ }; - enum { - FLAGS_MASK = 0x0ff, - VAR_NAME = 0x100, - VAR_NAME4 = 0x200, - ALWAYS64 = 0x400, - SPECIAL64 = 0x800, - GROUP_MOD = 0x1000 - }; + static constexpr unsigned FLAGS_MASK = 0x0ff; + static constexpr unsigned VAR_NAME = 0x100; + static constexpr unsigned VAR_NAME4 = 0x200; + static constexpr unsigned ALWAYS64 = 0x400; + static constexpr unsigned SPECIAL64 = 0x800; + static constexpr unsigned GROUP_MOD = 0x1000; struct I386_OPCODE { const char *mnemonic; |
