github / cmark-gfm

GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C
Other
875 stars 171 forks source link

Fix format specifier for printing a size_t #340

Closed kevinbackhouse closed 12 months ago

kevinbackhouse commented 1 year ago

%d is not the correct format specifier for size_t. I think %zu should be correct, provided that nobody is using an old compiler that doesn't support it. Based on this stackoverflow question from 10 years ago, I think it should be ok.