small gcc and msvc8 corrections

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@220 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2005-08-27 12:47:56 +00:00
parent 0f678b97e2
commit cdb70a208b
2 changed files with 8 additions and 6 deletions

View file

@ -9,7 +9,7 @@
// warranty.
////////////////////////////////////////////////////////////////////////////////
#include "loki/SafeFormat.h"
#include "SafeFormat.h"
#include <iostream>
#include <cassert>
#include <utility>
@ -55,7 +55,7 @@ void TestCase(const string& fmt, T value) {
char buf[4096];
std::string s;
const int i1 = SPrintf(s, fmt.c_str())(value);
const int i2 = snprintf(buf, sizeof(buf), fmt.c_str(), value);
const int i2 = _snprintf(buf, sizeof(buf), fmt.c_str(), value);
if (i1 != i2 || s != buf) {
cout <<
"\nReference: " << i2 <<