1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Fix packing_size.

This commit is contained in:
Thomas Harte 2023-10-27 13:46:14 -04:00
parent 2d70b44303
commit f9d98ed219

View File

@ -728,7 +728,7 @@ template<bool is_32bit> class Instruction {
/// this allows a denser packing of instructions into containers.
size_t packing_size() const {
return
offsetof(Instruction<is_32bit>, extensions) +
offsetof(Instruction<is_32bit>, extensions_) +
(has_displacement() + has_operand()) * sizeof(ImmediateT);
}