diff --git a/lib/filelister_win32.cpp b/lib/filelister_win32.cpp index 565bd579b..a9a8f895d 100644 --- a/lib/filelister_win32.cpp +++ b/lib/filelister_win32.cpp @@ -88,7 +88,7 @@ static BOOL MyIsDirectory(std::string path) return (GetFileAttributes(path.c_str()) & FILE_ATTRIBUTE_DIRECTORY); #else // See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx -return PathIsDirectory(path.c_str()); + return PathIsDirectory(path.c_str()); #endif } diff --git a/test/testmathlib.cpp b/test/testmathlib.cpp index 4e0f2d3d2..155dec47c 100644 --- a/test/testmathlib.cpp +++ b/test/testmathlib.cpp @@ -262,6 +262,7 @@ private: ASSERT_EQUALS(false , MathLib::isFloat("+1E+10000")); ASSERT_EQUALS(false , MathLib::isFloat("-1E+1")); ASSERT_EQUALS(false , MathLib::isFloat("-1E+10000")); + ASSERT_EQUALS(true , MathLib::isFloat(".1250E+04")); ASSERT_EQUALS(true , MathLib::isFloat("-1E-1")); ASSERT_EQUALS(true , MathLib::isFloat("-1E-10000"));