summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-22 17:26:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-22 17:26:16 -0800
commitcdb0a5e8602ce2475555c48c9f285e736ccb22ef (patch)
tree866fe6986ffe15758904fc5aab07a23ad46e371e
parent3a4e743be3c32ddfc36e5f868709bc077ae54c90 (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.c3
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;
}