chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Fix segfault when passing a non-integer to


From: Kooda
Subject: Re: [Chicken-hackers] [PATCH] Fix segfault when passing a non-integer to thread-sleep! (fixes #1459)
Date: Mon, 30 Apr 2018 21:38:42 +0200

On Mon, 30 Apr 2018 21:03:26 +0200 Peter Bex <address@hidden>
wrote:
> Hi all,
> 
> This was just found by Kristian, and it's pretty trivial:
> user code can call thread-sleep! with any real number as an argument,
> but the timeout code itself which calculates the number of
> microseconds to wait expects an integer.  This means we'll have to
> round the deadline and make it an exact integer before sleeping.
> 
> Cheers,
> Peter

pushed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]