summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKevin Wojniak <kainjow@kainjow.com>2015-08-10 10:06:14 -0700
committerKevin Wojniak <kainjow@kainjow.com>2015-08-10 10:06:14 -0700
commit722bc5df7e7bde6ec865b991e500aca04c931ad5 (patch)
tree24b01e07e7b5921fb415011e3db41e5aad669b34 /src/buffer.c
parent59bcd222c3ef1a64045e27db24ffddeb99ee29d4 (diff)
Remove need to disable MSVC warning 4244
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 26dfb8e..a89c82e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -133,7 +133,7 @@ void cmark_strbuf_sets(cmark_strbuf *buf, const char *string) {
void cmark_strbuf_putc(cmark_strbuf *buf, int c) {
S_strbuf_grow_by(buf, 1);
- buf->ptr[buf->size++] = c;
+ buf->ptr[buf->size++] = (unsigned char)(c & 0xFF);
buf->ptr[buf->size] = '\0';
}