mirror of
https://github.com/ModOrganizer2/udis86.git
synced 2026-07-27 14:05:57 -07:00
No UD_ATTRIBUTE_PACKED for ud_mnemonic_code
I don't think packing the enum into 16-bit is advantageous in any way, also it doesn't happen on MSVC, for which the macro is defined to be empty. The ud struct's size shouldn't change (at least it doesn't on Clang/GCC for 64-bit), only the offset of the mnemonic member would be aligned to 4 bytes.
This commit is contained in:
+1
-1
@@ -319,7 +319,7 @@ class UdItabGenerator:
|
||||
enum = "enum ud_mnemonic_code {\n "
|
||||
enum += ",\n ".join( [ "UD_I%s" % m for m in self.getMnemonicsList() ] )
|
||||
enum += ",\n UD_MAX_MNEMONIC_CODE"
|
||||
enum += "\n} UD_ATTR_PACKED;\n"
|
||||
enum += "\n};\n"
|
||||
self.ItabH.write( enum )
|
||||
self.ItabH.write( "\n" )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user