Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/nawk cast the parameter to toupper()/tolower() to unsig...
details: https://anonhg.NetBSD.org/src/rev/0e17ce45327c
branches: trunk
changeset: 503572:0e17ce45327c
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Feb 09 00:56:18 2001 +0000
description:
cast the parameter to toupper()/tolower() to unsigned char, so that
this works with *p > 127
diffstat:
dist/nawk/run.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 9a94a45cad8b -r 0e17ce45327c dist/nawk/run.c
--- a/dist/nawk/run.c Fri Feb 09 00:44:35 2001 +0000
+++ b/dist/nawk/run.c Fri Feb 09 00:56:18 2001 +0000
@@ -1501,11 +1501,11 @@
if (t == FTOUPPER) {
for (p = buf; *p; p++)
if (islower((uschar) *p))
- *p = toupper(*p);
+ *p = toupper((uschar) *p);
} else {
for (p = buf; *p; p++)
if (isupper((uschar) *p))
- *p = tolower(*p);
+ *p = tolower((uschar) *p);
}
tempfree(x);
x = gettemp();
Home |
Main Index |
Thread Index |
Old Index