Bug fix: Equal handles numbers correctly now.
This commit is contained in:
parent
5cc06893ec
commit
c3401ef735
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
Binary file not shown.
|
@ -851,7 +851,7 @@
|
|||
(f x v n ($fxadd1 i)))))
|
||||
(error 'vector-memq "~s is not a vector" v))))
|
||||
|
||||
(primitive-set! 'memv memq)
|
||||
(primitive-set! 'memv memq) ; INCORRECT, SHOULD USE EQV
|
||||
(primitive-set! 'vector-memv vector-memq)
|
||||
|
||||
(primitive-set! 'list->string
|
||||
|
@ -1198,6 +1198,7 @@
|
|||
(let ([n ($string-length x)])
|
||||
(and ($fx= n ($string-length y))
|
||||
(string-loop x y 0 n))))]
|
||||
[(number? x) (and (number? y) (= x y))]
|
||||
[else #f])))
|
||||
(primitive-set! 'equal? equal?))
|
||||
|
||||
|
|
Loading…
Reference in New Issue