summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-07 21:03:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-07 21:03:02 +0000
commit63831d6e7688fa7c3bdaad357dc3f6aad3362749 (patch)
tree655b683ef7601c776d4294042628b10e74e6b17a
parent46dd3365d4def0a50cf065f76bc39e52dfa71d82 (diff)
downloadmandoc-63831d6e7688fa7c3bdaad357dc3f6aad3362749.tar.gz
mandoc-63831d6e7688fa7c3bdaad357dc3f6aad3362749.tar.zst
mandoc-63831d6e7688fa7c3bdaad357dc3f6aad3362749.zip
Lint fix.
Added J.C. Roberts' TODO note.
-rw-r--r--TODO3
-rw-r--r--term.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/TODO b/TODO
index 3fc2d98b..de158aa8 100644
--- a/TODO
+++ b/TODO
@@ -65,6 +65,9 @@
- set a meaningful default if no `Bl' list type is assigned
- have a blank `It' head for `Bl -tag' not puke
+
+- ignore horrendous m[] font colouring
+ reported by J.C. Roberts
************************************************************************
* formatting issues: ugly output
diff --git a/term.c b/term.c
index f8e7c395..cadde0ca 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.142 2010/06/07 20:57:09 kristaps Exp $ */
+/* $Id: term.c,v 1.143 2010/06/07 21:03:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -315,7 +315,7 @@ alloc(char *outopts, enum termenc enc, enum termtype type)
while (outopts && *outopts)
switch (getsubopt(&outopts, UNCONST(toks), &v)) {
case (0):
- width = atoi(v);
+ width = (size_t)atoi(v);
break;
default:
break;