From e61c4b5f06241dd248cfe28b29cb658ea47bd72e Mon Sep 17 00:00:00 2001 From: Robert Antoni Buj i Gelonch Date: Thu, 16 Oct 2014 18:58:13 +0200 Subject: java: prevent overflow by using 'long int' arithmetic in multiplication Change-Id: I8dda8f4621f265208c713c9edcfe725f1c9c5998 Reviewed-on: https://gerrit.libreoffice.org/12001 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bean') 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 -- cgit