SLEEP limited to signed-word

Bug #391635 reported by Nikodemus Siivola on 2009-06-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

...but specified to accept a non-negative real. Considering that no-one is going to need a sleep that really takes over 68 years, truncating larger values to largest acceptable argument should be good enough.

> CL-USER(188): (sleep 9999999999999999)
> debugger invoked on a TYPE-ERROR in thread #<THREAD "initial thread" RUNNING {A8E2989}>:
> The value 9999999999999999 is not of type (SIGNED-BYTE 32).
> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
> restarts (invokable by number or by possibly-abbreviated name):
> 0: [ABORT] Exit debugger, returning to top level.
> (SB-UNIX:NANOSLEEP 9999999999999999 0)
> 0] 0

Reported by Leslie Polzer on sbcl-devel.

description: updated
Stas Boukarev (stassats) wrote :

Here is my try.

Nikodemus Siivola (nikodemus) wrote :

In, thanks!

Changed in sbcl:
status: Confirmed → Fix Committed
tags: removed: sleep
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments