cmark

My personal build of CMark ✏️

Commit
cdb0a5e8602ce2475555c48c9f285e736ccb22ef
Parent
3a4e743be3c32ddfc36e5f868709bc077ae54c90
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed an unnecessary C99-ism in buffer.c.

This helps compiling on systems like luarocks that don't have all the cmake configuration goodness.

Thanks to @carlmartus

Diffstat

1 file changed, 2 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/buffer.c 3 2 1
diff --git a/src/buffer.c b/src/buffer.c
@@ -217,7 +217,8 @@ bufsize_t cmark_strbuf_strrchr(const cmark_strbuf *buf, int c, bufsize_t pos) {
   if (pos >= buf->size)
     pos = buf->size - 1;
 
-  for (bufsize_t i = pos; i >= 0; i--) {
+  bufsize_t i;
+  for (i = pos; i >= 0; i--) {
     if (buf->ptr[i] == (unsigned char)c)
       return i;
   }