diff --git a/SWIG/Source/Swig/misc.c b/SWIG/Source/Swig/misc.c index b05d28c32..4ee6be8a3 100644 --- a/SWIG/Source/Swig/misc.c +++ b/SWIG/Source/Swig/misc.c @@ -159,6 +159,7 @@ String *Swig_string_title(String *s) { * capitalized and the one following '_', which are removed. * * camel_case -> CamelCase + * camelCase -> CamelCase * ----------------------------------------------------------------------------- */ String *Swig_string_ctitle(String *s) { @@ -173,7 +174,7 @@ String *Swig_string_ctitle(String *s) { first = 1; continue; } - Putc(first ? toupper(c) : tolower(c),ns); + Putc(first ? toupper(c) : c, ns); first = 0; } return ns;