aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-05-06 08:42:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-05-06 08:42:50 +0200
commit039047d8f2d373c41cecbe4b459e30e37be96a5f (patch)
tree6e69614a0a48223ab985907036b52f426bbb289d
parent297b4bd2c5bd5ed5e62f560a8b60c1d04903455b (diff)
Fix for mingw g++xsd-3
-rw-r--r--examples/cxx/parser/performance/time.cxx2
-rw-r--r--examples/cxx/tree/performance/time.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/cxx/parser/performance/time.cxx b/examples/cxx/parser/performance/time.cxx
index d7c81ce..6753975 100644
--- a/examples/cxx/parser/performance/time.cxx
+++ b/examples/cxx/parser/performance/time.cxx
@@ -24,7 +24,7 @@ namespace os
FILETIME ft;
GetSystemTimeAsFileTime (&ft);
unsigned long long v (
- (unsigned long long (ft.dwHighDateTime) << 32) + ft.dwLowDateTime);
+ ((unsigned long long) (ft.dwHighDateTime) << 32) + ft.dwLowDateTime);
sec_ = static_cast<unsigned long> (v / 10000000ULL);
nsec_ = static_cast<unsigned long> ((v % 10000000ULL) * 100);
diff --git a/examples/cxx/tree/performance/time.cxx b/examples/cxx/tree/performance/time.cxx
index c2de6dc..c91f813 100644
--- a/examples/cxx/tree/performance/time.cxx
+++ b/examples/cxx/tree/performance/time.cxx
@@ -24,7 +24,7 @@ namespace os
FILETIME ft;
GetSystemTimeAsFileTime (&ft);
unsigned long long v (
- (unsigned long long (ft.dwHighDateTime) << 32) + ft.dwLowDateTime);
+ ((unsigned long long) (ft.dwHighDateTime) << 32) + ft.dwLowDateTime);
sec_ = static_cast<unsigned long> (v / 10000000ULL);
nsec_ = static_cast<unsigned long> ((v % 10000000ULL) * 100);