Skip to content

Commit cdc6439

Browse files
committed
repair for Racket CS
Don't cast to add a struct wrapper, because the cpointer value that refers to 'atomic-interior memory must be retained.
1 parent 17debae commit cdc6439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

math-lib/math/private/bigfloat/mpfr.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ There's no reason to allocate new limbs for an _mpfr without changing its precis
361361
(set-mpfr-sign! x 0)
362362
(set-mpfr-exp! x mpfr-exp-nan) ; what `mpfr-init2' does
363363
(set-mpfr-d! x d)
364-
;; Cast to add struct wrapper:
365-
(cast x _pointer _mpfr-pointer))
364+
;; Add struct wrapper:
365+
(make-wrap-mpfr x))
366366

367367
;; ===================================================================================================
368368
;; Accessors

0 commit comments

Comments
 (0)