diff options
Diffstat (limited to 'lib/String.cc')
-rw-r--r-- | lib/String.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/String.cc b/lib/String.cc index 53ecb83..ba84b4c 100644 --- a/lib/String.cc +++ b/lib/String.cc @@ -23,7 +23,7 @@ char String::t[BUFSIZ + 1]; String::String(const String & s) : str(Base::strdup(s.str)), siz(s.siz) { #ifdef DEBUG - fprintf(stderr, _("Duplicating string `%s', from %p to %p, from this %p to this %p\n"), str, s.str, str, s, this); + fprintf(stderr, _("Duplicating string `%s', from %p to %p, from this %p to this %p\n"), str, s.str, str, &s, this); #endif } @@ -455,7 +455,7 @@ String::operator ugly_string() const { } String & String::toupper() { - for (int i = 0; i < strlen(); i++) { + for (unsigned int i = 0; i < strlen(); i++) { str[i] = ::toupper(str[i]); } @@ -463,7 +463,7 @@ String & String::toupper() { } String & String::tolower() { - for (int i = 0; i < strlen(); i++) { + for (unsigned int i = 0; i < strlen(); i++) { str[i] = ::tolower(str[i]); } |