Commit 32e3f78b authored by Martin Marinov's avatar Martin Marinov
Browse files

Fixed the compatibility of Debug::File::print(const size_t) for VS2012 after...

Fixed the compatibility of Debug::File::print(const size_t) for VS2012 after merging the change to support VS2015.
parent 30c21b53
......@@ -211,7 +211,11 @@ public:
void print(const size_t _i)
{
char buffer[128];
#if defined(_MSC_VER) && _MSC_VER < 1900 // MSVC versions older than VC2015
sprintf_s(buffer, sizeof(buffer), "%Iu", _i);
#else // MSVC 2015 and everything else
sprintf_s(buffer, sizeof(buffer), "%zu", _i);
#endif
print(buffer);
}
......@@ -222,7 +226,6 @@ public:
print(buffer);
}
const char* double_format() const
{
if (double_format_.empty())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment