summaryrefslogtreecommitdiff
path: root/sal/osl/unx/time.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/time.cxx')
-rw-r--r--sal/osl/unx/time.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/time.cxx b/sal/osl/unx/time.cxx
index 4e42e2dcac9a..4bd3003ef7d5 100644
--- a/sal/osl/unx/time.cxx
+++ b/sal/osl/unx/time.cxx
@@ -288,7 +288,7 @@ sal_uInt32 SAL_CALL osl_getGlobalTimer()
mach_port_deallocate(mach_task_self(), cclock);
nSeconds = ( currentTime.tv_sec - startTime.tv_sec );
- nSeconds = ( nSeconds * 1000 ) + (long) (( currentTime.tv_nsec - startTime.tv_nsec) / 1000000 );
+ nSeconds = ( nSeconds * 1000 ) + static_cast<long>(( currentTime.tv_nsec - startTime.tv_nsec) / 1000000 );
#else
osl_time_t currentTime;