summaryrefslogtreecommitdiff
path: root/bean/com/sun/star/comp/beans
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-16 18:58:13 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-25 12:07:22 +0000
commite61c4b5f06241dd248cfe28b29cb658ea47bd72e (patch)
tree04aeef2097ccaeb16642b209e8d3c5c48c0161eb /bean/com/sun/star/comp/beans
parentf824b1b575dbdb2bc515656a66cbb94764031a44 (diff)
java: prevent overflow by using 'long int' arithmetic in multiplication
Change-Id: I8dda8f4621f265208c713c9edcfe725f1c9c5998 Reviewed-on: https://gerrit.libreoffice.org/12001 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'bean/com/sun/star/comp/beans')
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
index da8651077ce9..7174dca28461 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
@@ -318,7 +318,7 @@ public class LocalOfficeConnection
aSOffice.startupService();
// wait until soffice is started
- long nMaxMillis = System.currentTimeMillis() + 1000*aSOffice.getStartupTime();
+ long nMaxMillis = System.currentTimeMillis() + 1000L*aSOffice.getStartupTime();
while ( aInitialObject == null )
{
try