diff options
Diffstat (limited to 'examples/cxx')
-rw-r--r-- | examples/cxx/parser/performance/time.cxx | 2 | ||||
-rw-r--r-- | examples/cxx/tree/performance/time.cxx | 2 |
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); |