http-parser icon indicating copy to clipboard operation
http-parser copied to clipboard

Fix sizeof(http_parser) assert on i386

Open mgorny opened this issue 5 years ago • 0 comments

The struct size is actually 28 bytes because the void* field is 4 bytes shorter. As the people on the original bug explained, x86 has lower alignment requirements than other arches, so the struct is not padded. However, this does not mean you can ignore the void* size difference.

mgorny avatar Nov 10 '20 18:11 mgorny