From 52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 Mar 2011 17:04:43 +0000 Subject: * src/algebra/: Systematically use negative? when comparing for less than 0. --- src/algebra/stream.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/stream.spad.pamphlet') diff --git a/src/algebra/stream.spad.pamphlet b/src/algebra/stream.spad.pamphlet index 3d5159ea..a51a1c51 100644 --- a/src/algebra/stream.spad.pamphlet +++ b/src/algebra/stream.spad.pamphlet @@ -1091,7 +1091,7 @@ Stream(S): Exports == Implementation where setrestt!(rst x,n-1,y) setrest!(x,n,y) == - n < 0 or empty? x => error "setrest!: no such rest" + negative? n or empty? x => error "setrest!: no such rest" x := expand!(x,n+1) setrestt!(x,n,y) -- cgit v1.2.3