summaryrefslogtreecommitdiff
path: root/cppe/test/Common/TestCommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/test/Common/TestCommon.cpp')
-rwxr-xr-xcppe/test/Common/TestCommon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppe/test/Common/TestCommon.cpp b/cppe/test/Common/TestCommon.cpp
index c25201762cc..303d3f697ad 100755
--- a/cppe/test/Common/TestCommon.cpp
+++ b/cppe/test/Common/TestCommon.cpp
@@ -38,15 +38,15 @@ public:
{
IceUtil::StaticMutex::Lock sync(globalMutex);
string s = "[ ";
-#ifdef _WIN32
{
char buf[1024];
+#ifdef _WIN32
sprintf(buf, "%ld", GetTickCount());
- s += buf;
- }
#else
- s += IceUtil::Time::now().toMilliSeconds();
+ sprintf(buf, "%lu", (long)IceUtil::Time::now().toMilliSeconds());
#endif
+ s += buf;
+ }
s += ' ';
if(!category.empty())