LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
22.36k stars 994 forks source link

LibCrypto: Use size_t integer literal in ASN1/Der.cpp #2487

Open R-Goc opened 4 days ago

R-Goc commented 4 days ago

On x86_64 Windows an unsigned long is 4 bytes, while a size_t is 8. As such this code causes a static assert checking that the size of both arguments to ceil_div is equal to fail at compilation time. This commit fixes this by replacing the unsigned long int literal with a size_t int literal.