* texi2mdoc: Allow compiling on OpenBSD.
@ 2015-02-23 15:24 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2015-02-23 15:24 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-23 15:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-23 15:24 texi2mdoc: Allow compiling on OpenBSD kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).