summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-02-02 20:12:29 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2015-02-02 20:12:29 +0100
commitabff167453e96c4bb2fb9498d9e414db78a031fe (patch)
treeebf50c727f003f524f140526343ddfb4be6b3de1 /sw
parentf0bd9c2fd68c519992722faffe58e2ba8a02d4ed (diff)
fixup: use sal macros to force 64 bit integer
Change-Id: If584cf49dc5e8864eca733fd99c04cdb4da0da09
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/fields/docufld.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index 255de7a34ad4..3e02a324fe34 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -1023,7 +1023,11 @@ template<class T>
static double lcl_TimeToDouble( const T& rTime )
{
const double fNanoSecondsPerDay = 86400000000000.0;
- return ((rTime.Hours*3600000000000LL)+(rTime.Minutes*60000000000LL)+(rTime.Seconds*1000000000LL)+(rTime.NanoSeconds)) / fNanoSecondsPerDay;
+ return ( (rTime.Hours * SAL_CONST_INT64(3600000000000))
+ + (rTime.Minutes * SAL_CONST_INT64( 60000000000))
+ + (rTime.Seconds * SAL_CONST_INT64( 1000000000))
+ + (rTime.NanoSeconds))
+ / fNanoSecondsPerDay;
}
template<class D>