mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
787 stars 146 forks source link

Small sizeof issue #94

Closed p0nce closed 5 years ago

p0nce commented 5 years ago

So I've ported md4c to the D language (https://github.com/p0nce/commonmark-d) and while translating I found a little mistake here:

https://github.com/mity/md4c/blob/master/md4c/md4c.c#L1690

I think you might mean: sizeof(MD_REF_DEF*) instead of: sizeof(MD_REF_DEF) which takes more memory.

Same issue here: https://github.com/mity/md4c/blob/master/md4c/md4c.c#L1707

and that's all I found. Amazing library!

mity commented 5 years ago

Thanks for the bug report.

Nice to know about the port. I have added a link to it into README.md.