(+ 1/2), (+ 0.5), (* 1/2) and (* 0.5) used to raise "not a number" errors.
This commit is contained in:
parent
db54cd0074
commit
f6ee3618ba
|
@ -676,7 +676,7 @@
|
|||
[(a)
|
||||
(cond
|
||||
[(fixnum? a) a]
|
||||
[(bignum? a) a]
|
||||
[(number? a) a]
|
||||
[else (die '+ "not a number" a)])]
|
||||
[() 0]
|
||||
[(a b c d . e*)
|
||||
|
@ -730,7 +730,7 @@
|
|||
[(a)
|
||||
(cond
|
||||
[(fixnum? a) a]
|
||||
[(bignum? a) a]
|
||||
[(number? a) a]
|
||||
[else (die '* "not a number" a)])]
|
||||
[() 1]
|
||||
[(a b c d . e*)
|
||||
|
|
|
@ -1 +1 @@
|
|||
1407
|
||||
1408
|
||||
|
|
Loading…
Reference in New Issue