patch #1745739 - Compiler warning for BSD from Klaus Heinz
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a122368370
commit
3f0bbe1581
1 changed files with 2 additions and 2 deletions
|
|
@ -293,7 +293,7 @@ String *Swig_string_first_upper(String *s) {
|
||||||
String *ns = NewStringEmpty();
|
String *ns = NewStringEmpty();
|
||||||
char *cs = Char(s);
|
char *cs = Char(s);
|
||||||
if (cs && cs[0] != 0) {
|
if (cs && cs[0] != 0) {
|
||||||
Putc(toupper(cs[0]), ns);
|
Putc(toupper((int)cs[0]), ns);
|
||||||
Append(ns, cs + 1);
|
Append(ns, cs + 1);
|
||||||
}
|
}
|
||||||
return ns;
|
return ns;
|
||||||
|
|
@ -314,7 +314,7 @@ String *Swig_string_first_lower(String *s) {
|
||||||
String *ns = NewStringEmpty();
|
String *ns = NewStringEmpty();
|
||||||
char *cs = Char(s);
|
char *cs = Char(s);
|
||||||
if (cs && cs[0] != 0) {
|
if (cs && cs[0] != 0) {
|
||||||
Putc(tolower(cs[0]), ns);
|
Putc(tolower((int)cs[0]), ns);
|
||||||
Append(ns, cs + 1);
|
Append(ns, cs + 1);
|
||||||
}
|
}
|
||||||
return ns;
|
return ns;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue