X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/9649fe0209de88926626165951e2db3043b73ee6..21063bf128e3391402d4b9d63a7f8a532e3252c9:/gomoku/stoc.c 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)); } /*