cs: repair primitives incorrectly exported in unsafe form
This commit is contained in:
parent
299d80e830
commit
fdb98da0b1
|
@ -27,7 +27,7 @@
|
|||
(#2%unbox b))
|
||||
|
||||
(define (set-box! b v)
|
||||
(if (#%box? b)
|
||||
(if (#%mutable-box? b)
|
||||
(#3%set-box! b v)
|
||||
(pariah (impersonate-set-box! b v))))
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
(check who real? x)
|
||||
(exact->inexact x))
|
||||
|
||||
(define arithmetic-shift bitwise-arithmetic-shift)
|
||||
(define arithmetic-shift #2%bitwise-arithmetic-shift)
|
||||
|
||||
(define/who (integer-sqrt n)
|
||||
(check who integer? n)
|
||||
|
@ -36,12 +36,12 @@
|
|||
(let ([m (integer-sqrt n)])
|
||||
(values m (- n (* m m)))))
|
||||
|
||||
(define fx->fl fixnum->flonum)
|
||||
(define fxrshift fxarithmetic-shift-right)
|
||||
(define fxlshift fxarithmetic-shift-left)
|
||||
(define fx->fl #2%fixnum->flonum)
|
||||
(define fxrshift #2%fxarithmetic-shift-right)
|
||||
(define fxlshift #2%fxarithmetic-shift-left)
|
||||
|
||||
(define fl->fx flonum->fixnum)
|
||||
(define ->fl real->flonum)
|
||||
(define fl->fx #2%flonum->fixnum)
|
||||
(define ->fl #2%real->flonum)
|
||||
(define/who (fl->exact-integer fl)
|
||||
(check who flonum? fl)
|
||||
(inexact->exact (flfloor fl)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user