From 46b6fb73529e79de5452e9d25e26a7c8b83bd79f Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 14 May 2011 17:54:42 +0000 Subject: 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. --- chars.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chars.c') diff --git a/chars.c b/chars.c index c33dedcf..6d9cf9d3 100644 --- a/chars.c +++ b/chars.c @@ -1,4 +1,4 @@ -/* $Id: chars.c,v 1.40 2011/05/01 08:38:56 kristaps Exp $ */ +/* $Id: chars.c,v 1.41 2011/05/14 17:54:42 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -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'); } /* -- cgit v1.2.3