From: Maxim Mamontov Date: Sat, 10 Aug 2013 15:54:50 +0000 (+0300) Subject: Fixed stupid bug in case conversion functions. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/b7e8712548323c7d4bacd999710c9963295f8950 Fixed stupid bug in case conversion functions. --- diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp index c02f675c..763df532 100644 --- a/stglibs/common.lib/common.cpp +++ b/stglibs/common.lib/common.cpp @@ -824,7 +824,7 @@ std::string ToLower(const std::string & value) std::string res; for (std::string::size_type pos = 0; pos < value.length(); ++pos) res += tolower(value[pos]); - return value; + return res; } //--------------------------------------------------------------------------- std::string ToUpper(const std::string & value) @@ -832,7 +832,7 @@ std::string ToUpper(const std::string & value) std::string res; for (std::string::size_type pos = 0; pos < value.length(); ++pos) res += toupper(value[pos]); - return value; + return res; } //--------------------------------------------------------------------------- #ifdef WIN32 diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index 3b1ea275..6c71289b 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -155,7 +155,7 @@ int str2x(const std::string & str, varT & x) x += str[i] - '0'; } - x*= minus; + x *= minus; return 0; }