summaryrefslogtreecommitdiffstats
path: root/preconv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2015-03-06 09:24:59 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2015-03-06 09:24:59 +0000
commit2479665885291314c674c00adaea2c9589d68e84 (patch)
tree876a7d8bf37a5039c0dc87e886eb8859eeea8974 /preconv.c
parente416cc264f516dffda5d5702bbeecd388646bd27 (diff)
downloadmandoc-2479665885291314c674c00adaea2c9589d68e84.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preconv.c b/preconv.c
index 73fd415f..21013daa 100644
--- a/preconv.c
+++ b/preconv.c
@@ -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))