diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2015-03-06 09:24:59 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2015-03-06 09:24:59 +0000 |
commit | 9b1e1a0a8be9129fdf6fcb1a222a78db07fd59e5 (patch) | |
tree | b18287b853017169cc9c4add667f5faaf069d264 /preconv.c | |
parent | 06e2b6adb28e524b28426087cee444a5c4e24b3d (diff) | |
download | mandoc-9b1e1a0a8be9129fdf6fcb1a222a78db07fd59e5.tar.gz mandoc-9b1e1a0a8be9129fdf6fcb1a222a78db07fd59e5.tar.zst mandoc-9b1e1a0a8be9129fdf6fcb1a222a78db07fd59e5.zip |
Allow compilation on Mac OS X, which doesn't have MACHINE defined.
While there, specify some casts to satisfy the compiler warnings.
OK schwarze@
Diffstat (limited to 'preconv.c')
-rw-r--r-- | preconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: preconv.c,v 1.13 2014/12/19 04:58:35 schwarze Exp $ */ +/* $Id: preconv.c,v 1.14 2015/03/06 09:24:59 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -33,7 +33,7 @@ preconv_encode(struct buf *ib, size_t *ii, struct buf *ob, size_t *oi, int nby; unsigned int accum; - cu = ib->buf + *ii; + cu = (unsigned char *)ib->buf + *ii; assert(*cu & 0x80); if ( ! (*filenc & MPARSE_UTF8)) |