diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-05-31 19:53:14 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-05 09:46:55 +0200 |
commit | ac56aa678cfe1666b60821f342ccb7b3d3fa7a0d (patch) | |
tree | 2887de1a5a21c8550e4bd52ea8867c18a5e2bac9 /dw/oofposfixedmgr.hh | |
parent | ee32215fc1937e8a5e3c26b646ca8563e8de92e9 (diff) |
Define CssLength as struct instead of int
The int type doesn't have a fixed size, and is only guarantee to hold 16
bits. The current implementation assumes a size of at least 32 bits, an
uses three bits to encode the type of information stored in the rest.
To add more types of lengths we would need to take more bits from the
value itself.
A simpler approach is just to use a enumeration to take care of the type
of length and a union to encapsulate the different lengths values.
Diffstat (limited to 'dw/oofposfixedmgr.hh')
0 files changed, 0 insertions, 0 deletions