[tools] testbot/TestAgent: The maximum alarm() value is signed.
Francois Gouget
fgouget at codeweavers.com
Tue Feb 8 16:42:09 CST 2022
And still 32-bit.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/WineTestBot/TestAgent.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index fea7e650e1..b395cf2d26 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -267,8 +267,8 @@ sub _SetAlarm($)
{
my $Timeout = $self->{deadline} - time();
die "timeout" if ($Timeout <= 0);
- # alarm() has a 32-bit limit, even on 64-bit systems
- alarm($Timeout <= 0xffffffff ? $Timeout : 0xffffffff);
+ # alarm() has a signed 32-bit limit, even on 64-bit systems
+ alarm($Timeout <= 0x7fffffff ? $Timeout : 0x7fffffff);
}
}
--
2.30.2
More information about the wine-devel
mailing list