fixed string->color
This commit is contained in:
parent
e62303f795
commit
f46c36c4a0
|
@ -66,7 +66,7 @@
|
||||||
(define (string->color str)
|
(define (string->color str)
|
||||||
(let ((colornumber 0))
|
(let ((colornumber 0))
|
||||||
(do ((i (- (string-length str) 1) (- i 1)))
|
(do ((i (- (string-length str) 1) (- i 1)))
|
||||||
((< i 0) colornumber)
|
((< i 0) (- colornumber 1))
|
||||||
(let ((c (string-ref str i)))
|
(let ((c (string-ref str i)))
|
||||||
(let ((n (cond ((or (eq? c #\a)(eq? c #\A))
|
(let ((n (cond ((or (eq? c #\a)(eq? c #\A))
|
||||||
10)
|
10)
|
||||||
|
|
Loading…
Reference in New Issue