summaryrefslogtreecommitdiffstats
path: root/chars.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-14 17:54:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-14 17:54:42 +0000
commitc6f3075846c286cebabf731303d52660dd30afe8 (patch)
tree7fc3844d639c5d82fd378b30e3461c0fc7f04174 /chars.c
parent121fc3d4eff42f9400d7e165b83c068757148a7b (diff)
downloadmandoc-c6f3075846c286cebabf731303d52660dd30afe8.tar.gz
Make character engine (-Tascii, -Tpdf, -Tps) ready for Unicode: make buffer
consist of type "int". This will take more work (especially in encode and friends), but this is a strong start. This commit also consists of some harmless lint fixes.
Diffstat (limited to 'chars.c')
-rw-r--r--chars.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chars.c b/chars.c
index e0bbd35a..98d436fe 100644
--- a/chars.c
+++ b/chars.c
@@ -151,7 +151,8 @@ mchars_num2char(const char *p, size_t sz)
return('\0');
i = atoi(p);
- return(isprint(i) ? (char)i : '\0');
+ /* LINTED */
+ return(isprint(i) ? i : '\0');
}
/*