From 9649fe0209de88926626165951e2db3043b73ee6 Mon Sep 17 00:00:00 2001 From: dsl Date: Fri, 5 Nov 2004 21:30:31 +0000 Subject: Add (unsigned char) cast to ctype functions --- mille/move.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mille') diff --git a/mille/move.c b/mille/move.c index caca78c1..e383e9c8 100644 --- a/mille/move.c +++ b/mille/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.14 2004/04/06 19:15:07 jdc Exp $ */ +/* $NetBSD: move.c,v 1.15 2004/11/05 21:30:32 dsl Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move.c,v 1.14 2004/04/06 19:15:07 jdc Exp $"); +__RCSID("$NetBSD: move.c,v 1.15 2004/11/05 21:30:32 dsl Exp $"); #endif #endif /* not lint */ @@ -367,9 +367,9 @@ getmove() refresh(); while ((c = readch()) == killchar() || c == erasechar()) continue; - if (islower(c)) - c = toupper(c); - if (isprint(c) && !isspace(c)) { + if (islower((unsigned char)c)) + c = toupper((unsigned char)c); + if (isprint((unsigned char)c) && !isspace((unsigned char)c)) { addch(c); refresh(); } -- cgit v1.2.3-56-ge451