aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-05-06 08:59:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-05-06 08:59:24 +0200
commit7fed604c4a6ad1b2506fbc6df26296705917fc02 (patch)
tree967f1532bdc9520c6137c2ecbea35363da714b70
parent569cfb24dc772badffe06494aa39ec6634f85fcd (diff)
parent039047d8f2d373c41cecbe4b459e30e37be96a5f (diff)
Merge branch '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);