akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.05k stars 809 forks source link

Fix size_t related compiler warnings #554

Closed kiyolee closed 3 years ago

kiyolee commented 3 years ago

For Windows 64-bit build using MSVC, the fact that sizeof(long) != sizeof(size_t) would generate a fair bit compiler warnings. Using size_t consistently is a better approach than using long and size_t interchangeably. For printing size_t variables using printf(), It is also better to take advantage of C11 "%zd" if possible.

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.6%) to 95.561% when pulling ec1b6318e4d31e8dc7c62ef5bf9b63e0379cdc4b on kiyolee:master into a740f15c17ef7956b1493d8d1f800896c1e60bad on akheron:master.

kiyolee commented 3 years ago

should submit PR with branch other than master.