astyle formatting
This commit is contained in:
parent
1c0f3ee179
commit
24c5f4d53c
|
@ -33,8 +33,8 @@
|
|||
long MathLib::toLongNumber(const std::string &str)
|
||||
{
|
||||
if (strncmp(str.c_str(), "0x" , 2) == 0
|
||||
||strncmp(str.c_str(), "+0x", 3) == 0
|
||||
||strncmp(str.c_str(), "-0x", 3) == 0)
|
||||
|| strncmp(str.c_str(), "+0x", 3) == 0
|
||||
|| strncmp(str.c_str(), "-0x", 3) == 0)
|
||||
{
|
||||
return std::strtoul(str.c_str(), '\0', 16);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ std::string MathLib::toString(T d)
|
|||
std::ostringstream result;
|
||||
result << d;
|
||||
std::string strResult(result.str());
|
||||
if(strResult == "-0"
|
||||
if (strResult == "-0"
|
||||
|| strResult == "+0"
|
||||
|| strResult == "-0."
|
||||
|| strResult == "+0.")
|
||||
|
|
Loading…
Reference in New Issue