File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 204
204
205
205
206
206
; ;; Float Num instances.
207
- (cl :defmacro define-num-float (type lisp-type)
207
+ (cl :defmacro define-num-float (type lisp-type plus-inf minus-inf )
208
208
" Define `Num' for the float type TYPE."
209
209
210
210
; ;
244
244
(lisp , type (x)
245
245
(cl :or (cl :ignore-errors (cl :coerce x ' ,lisp-type))
246
246
(cl :if (cl :< x 0 )
247
- (coalton ( the , type negative-infinity))
248
- (coalton ( the , type infinity)) ))))))
247
+ , minus-inf
248
+ , plus-inf ))))))
249
249
250
250
251
251
; ;; Utility to define type -> Fraction conversions.
Original file line number Diff line number Diff line change 106
106
; ;; Float Num instances
107
107
; ;;
108
108
109
- (define-num-float Single-Float cl :single-float)
110
- (define-num-float Double-Float cl :double-float)
109
+ (define-num-float Single-Float cl :single-float float-features :single-float-positive-infinity float-features :single-float-negative-infinity )
110
+ (define-num-float Double-Float cl :double-float float-features :double-float-positive-infinity float-features :double-float-negative-infinity )
111
111
112
112
113
113
; ;;
You can’t perform that action at this time.
0 commit comments