From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id abebb840; for ; Mon, 23 Feb 2015 10:24:14 -0500 (EST) Date: Mon, 23 Feb 2015 10:24:14 -0500 (EST) Message-Id: <16659826073648548609.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: texi2mdoc: Allow compiling on OpenBSD. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Allow compiling on OpenBSD. Modified Files: -------------- texi2mdoc: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /home/cvs/mdocml/texi2mdoc/main.c,v retrieving revision 1.35 retrieving revision 1.36 diff -Lmain.c -Lmain.c -u -p -r1.35 -r1.36 --- main.c +++ main.c @@ -532,7 +532,7 @@ doignblock(struct texi *p, enum texicmd */ term = memmem(&buf[*pos], sz, end, endsz); endpos = NULL == term ? sz : - *pos + term - &buf[*pos]; + *pos + (size_t)(term - &buf[*pos]); assert(endpos <= sz); while (*pos < endpos) advance(p, buf, pos); @@ -664,7 +664,7 @@ doverbatim(struct texi *p, enum texicmd */ term = memmem(&buf[*pos], sz, end, endsz); endpos = NULL == term ? sz : - *pos + term - &buf[*pos]; + *pos + (size_t)(term - &buf[*pos]); teximacro(p, "Bd -literal -offset indent"); assert(endpos <= sz); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv