blowfish fixes - 8

This commit is contained in:
erana 2012-01-20 18:18:43 +09:00
parent dc471aaedd
commit bb18d1ab17
1 changed files with 8 additions and 5 deletions

View File

@ -37,11 +37,14 @@
)) ))
(define (ref-with-index i) ;; get key (define (ref-with-index i) ;; get key
(do ((j 0 (+ j 1)) (if (>= i (length *dict))
(l *dict (cdr l))) (begin (display "dictionary - index out of range")
((= j i) 0)
(car l));;returns value (do ((j 0 (+ j 1))
)) (l *dict (cdr l)))
((= j i)
(car l));;returns value
)))
(define (set-with-index i value) ;; set value (define (set-with-index i value) ;; set value
(do ((j 0 (+ j 1)) (do ((j 0 (+ j 1))