trivial diff: util/info_to_mdb.c bug fix
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Feb 11 05:36:44 AEDT 1999
Estimated hours taken: 0.1
util/info_to_mdb.c:
Fix a bug: cast the argument to toupper() to `unsigned char'.
Index: util/info_to_mdb.c
===================================================================
RCS file: /home/staff/zs/imp/mercury/util/info_to_mdb.c,v
retrieving revision 1.1
diff -u -r1.1 info_to_mdb.c
--- info_to_mdb.c 1998/10/16 06:20:27 1.1
+++ info_to_mdb.c 1999/02/10 18:34:22
@@ -31,7 +31,7 @@
static char *get_next_line(FILE *infp);
static void put_line_back(char *line);
-#define concept_char(c) (MR_isupper(c) ? tolower(c) : \
+#define concept_char(c) (MR_isupper(c) ? tolower((unsigned char)c) : \
(MR_isspace(c) ? '_' : (c)))
int
--
Fergus Henderson <fjh at cs.mu.oz.au> | "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh> | but source code lives forever"
PGP: finger fjh at 128.250.37.3 | -- leaked Microsoft memo.
More information about the developers
mailing list