aboutsummaryrefslogtreecommitdiffstats
path: root/stptoupper.c
diff options
context:
space:
mode:
Diffstat (limited to 'stptoupper.c')
-rw-r--r--stptoupper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stptoupper.c b/stptoupper.c
index ad6c73e..ee56b75 100644
--- a/stptoupper.c
+++ b/stptoupper.c
@@ -10,18 +10,18 @@ libsimple_stptoupper(char *d, const char *s)
char *ret;
if (d == s) {
for (; *d; d++)
- *d = toupper(*d);
+ *d = (char)toupper(*d);
return d;
} else if (d < s) {
for (; *s; d++, s++)
- *d = toupper(*s);
+ *d = (char)toupper(*s);
*d = '\0';
return d;
} else {
for (n = 0; s[n]; n++);
ret = &d[n];
do {
- d[n] = toupper(s[n]);
+ d[n] = (char)toupper(s[n]);
} while (n--);
return ret;
}