From d93a7b01594a67f0c58048ffd396e317eeceaf8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20GRILLON?= Date: Wed, 14 Nov 2018 10:55:33 +0100 Subject: [PATCH] Cast one of the operands of this multiplication operation to a "long". --- Expect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Expect.java b/Expect.java index 70ba0b9..ea7ffb4 100644 --- a/Expect.java +++ b/Expect.java @@ -281,7 +281,7 @@ public int expect(int timeout, List list) { long waitTime = endTime - System.currentTimeMillis(); if (restart_timeout_upon_receive) - waitTime = timeout * 1000; + waitTime = (long) (timeout * 1000); if (waitTime <= 0) { log.debug("Timeout when expecting " + list); return RETV_TIMEOUT;