aboutsummaryrefslogtreecommitdiffstats
path: root/logical.scm
diff options
context:
space:
mode:
Diffstat (limited to 'logical.scm')
-rwxr-xr-x[-rw-r--r--]logical.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/logical.scm b/logical.scm
index 71e73b9..ce7b459 100644..100755
--- a/logical.scm
+++ b/logical.scm
@@ -207,6 +207,7 @@
(logand (lognot (ash mask start)) n))))
;@
(define (integer->list k . len)
+ (if (negative? k) (slib:error 'integer->list 'negative? k))
(if (null? len)
(do ((k k (arithmetic-shift k -1))
(lst '() (cons (odd? k) lst)))