mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
757b6fbbe5
XPTInterfaceDescriptor::num_additional_types can easily fit in 8 bits -- in practice it doesn't exceed 20, and there's already a check in DoTypeDescriptor that it doesn't exceed 255. This patch shrinks it and moves that check into XPT_InterfaceDescriptorAddTypes() so that any overflow would be detected more reliably. On 64-bit platforms this reduces sizeof(XPTInterfaceDescriptor) from 40 to 32 and correspondingly reduces "xpti-working-set" by 16 KiB. The patch also changes XPT_InterfaceDescriptorAddTypes() into a local function, because it's defined and only used in xpt_struct.cpp. |
||
---|---|---|
.. | ||
tools | ||
moz.build | ||
xpt_arena.cpp | ||
xpt_arena.h | ||
xpt_struct.cpp | ||
xpt_struct.h | ||
xpt_xdr.cpp | ||
xpt_xdr.h |