diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-03-13 21:25:25 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-03-13 21:25:25 -0700 |
commit | c4eb6bc33d9639ce0840a5fa3cea173c2c816fd1 (patch) | |
tree | 6724e3dbf909f022095cb5a7ad669c15477dfb78 /src/buffer.c | |
parent | c187089e8725b45144ec668c4bd95b99b28633d5 (diff) | |
parent | af98c75f1ad3338c813aa475aa1b543dd80c138a (diff) |
Merge pull request #109 from nwellnhof/msvc-c99
Compile in plain C mode with MSVC 12.0 or newer
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index a9d36e7..4efa97b 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -33,7 +33,7 @@ void cmark_strbuf_overflow_err() { abort(); } -static inline void S_strbuf_grow_by(cmark_strbuf *buf, size_t add) { +static CMARK_INLINE void S_strbuf_grow_by(cmark_strbuf *buf, size_t add) { size_t target_size = (size_t)buf->size + add; if (target_size < add /* Integer overflow. */ |