diff options
author | rillig <rillig@NetBSD.org> | 2005-04-19 20:14:29 +0000 |
---|---|---|
committer | rillig <rillig@NetBSD.org> | 2005-04-19 20:14:29 +0000 |
commit | 4a7bdd8b14df7be87f238b6d36a0f67946b0fca7 (patch) | |
tree | f659c812a210d58c494d51d4b1b1d8a5c64da6db /gomoku | |
parent | c3bbeb79806311e9e1543cb085b2dc1dbfffac42 (diff) | |
download | bsdgames-darwin-4a7bdd8b14df7be87f238b6d36a0f67946b0fca7.tar.gz bsdgames-darwin-4a7bdd8b14df7be87f238b6d36a0f67946b0fca7.tar.zst bsdgames-darwin-4a7bdd8b14df7be87f238b6d36a0f67946b0fca7.zip |
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
Diffstat (limited to 'gomoku')
-rw-r--r-- | gomoku/stoc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gomoku/stoc.c b/gomoku/stoc.c index 9ca5e659..48430c83 100644 --- a/gomoku/stoc.c +++ b/gomoku/stoc.c @@ -1,4 +1,4 @@ -/* $NetBSD: stoc.c,v 1.8 2004/11/05 21:30:32 dsl Exp $ */ +/* $NetBSD: stoc.c,v 1.9 2005/04/19 20:17:12 rillig Exp $ */ /* * Copyright (c) 1994 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)stoc.c 8.1 (Berkeley) 7/24/94"; #else -__RCSID("$NetBSD: stoc.c,v 1.8 2004/11/05 21:30:32 dsl Exp $"); +__RCSID("$NetBSD: stoc.c,v 1.9 2005/04/19 20:17:12 rillig Exp $"); #endif #endif /* not lint */ @@ -93,7 +93,7 @@ ctos(mp) i = atoi(&mp[1]); if (i < 1 || i > 19) return(ILLEGAL); - return(PT(lton(mp[0]), i)); + return(PT(lton((unsigned char)mp[0]), i)); } /* |