diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-22 17:26:16 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-22 17:26:16 -0800 |
commit | cdb0a5e8602ce2475555c48c9f285e736ccb22ef (patch) | |
tree | 866fe6986ffe15758904fc5aab07a23ad46e371e | |
parent | 3a4e743be3c32ddfc36e5f868709bc077ae54c90 (diff) |
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
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index a89c82e..a9d36e7 100644 --- 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; } |