From 0676b2bc2ca60d7270b8c35bac9d226a1da5c6e8 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 8 Jul 2019 23:10:10 -0400 Subject: [PATCH] Eliminate unused variable from typo. --- src/runtime/floenv.scm | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/src/runtime/floenv.scm b/src/runtime/floenv.scm index 3fbb396b3..78cfb0dc5 100644 --- a/src/runtime/floenv.scm +++ b/src/runtime/floenv.scm @@ -372,22 +372,21 @@ USA. (define flo:+inf.0) (define flo:-inf.0) (define (initialize-flonum-infinities!) - (let ((zero (lambda () (identity-procedure )))) - (if (flo:have-trap-enable/disable?) - (begin - (set! flo:+inf.0 - (named-lambda (flo:+inf.0) - (flo:with-exceptions-untrapped (flo:exception:divide-by-zero) - (lambda () - (flo:/ +1. 0.))))) - (set! flo:-inf.0 - (named-lambda (flo:-inf.0) - (flo:with-exceptions-untrapped (flo:exception:divide-by-zero) - (lambda () - (flo:/ -1. 0.))))) - unspecific) - ;; This works on macOS. YMMV. - (begin - (set! flo:+inf.0 (named-lambda (flo:+inf.0) (flo:/ +1. 0.))) - (set! flo:-inf.0 (named-lambda (flo:-inf.0) (flo:/ -1. 0.))) - unspecific)))) \ No newline at end of file + (if (flo:have-trap-enable/disable?) + (begin + (set! flo:+inf.0 + (named-lambda (flo:+inf.0) + (flo:with-exceptions-untrapped (flo:exception:divide-by-zero) + (lambda () + (flo:/ +1. 0.))))) + (set! flo:-inf.0 + (named-lambda (flo:-inf.0) + (flo:with-exceptions-untrapped (flo:exception:divide-by-zero) + (lambda () + (flo:/ -1. 0.))))) + unspecific) + ;; This works on macOS. YMMV. + (begin + (set! flo:+inf.0 (named-lambda (flo:+inf.0) (flo:/ +1. 0.))) + (set! flo:-inf.0 (named-lambda (flo:-inf.0) (flo:/ -1. 0.))) + unspecific))) \ No newline at end of file -- 2.25.1