]> Repositorios git - scryer-prolog.git/commitdiff
Undo a workaround
authornotoria <[email protected]>
Sun, 19 Apr 2020 21:26:16 +0000 (23:26 +0200)
committernotoria <[email protected]>
Sun, 19 Apr 2020 21:26:16 +0000 (23:26 +0200)
src/prolog/lib/time.pl

index b0d4300a6e8e2ee27ae6166d3d4cadad0cfe9195..1a5649592ed1cfe21cd5ef1d2cb17a24316e466d 100644 (file)
@@ -16,7 +16,7 @@
 
 sleep(T) :-
     builtins:must_be_number(T, sleep),
-    (   T < 0.0 ->
+    (   T < 0 ->
         throw(domain_error(not_less_than_zero, T))
     ;   T > 0xfffffffffffffbff ->
         throw(domain_error(not_great_than_0xfffffffffffffbff, T))