We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049f9ae commit 7e5d56aCopy full SHA for 7e5d56a
ops/core.rkt
@@ -119,10 +119,8 @@
119
(endpoint-immovable? (ival-hi ival)))
120
121
(define (new-ival precision)
122
- ; Warning, leaks memory unless `mpfr-clear!` called eventually
123
- (define bf1 (parameterize ([bf-precision precision]) (bf 0)))
124
- (define bf2 (parameterize ([bf-precision precision]) (bf 0)))
125
- (ival (endpoint bf1 #f) (endpoint bf2 #f) #f #f))
+ (parameterize ([bf-precision precision])
+ (ival (endpoint (bf 1) #f) (endpoint (bf 2) #f) #f #f)))
126
127
(define (mk-big-ival x y)
128
(cond
0 commit comments