Skip to content

Commit 14758da

Browse files
Fix 2 occurrences of consing-onto-static-list
This list-constructing expression can be simplified
1 parent 0691175 commit 14758da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/preprocess.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
(define repr (context-lookup context a))
166166
(define fmin (get-fpcore-impl 'fmin (repr->prop repr) (list repr repr)))
167167
(define fmax (get-fpcore-impl 'fmax (repr->prop repr) (list repr repr)))
168-
(replace-vars (list (cons a (list fmin a b)) (cons b (list fmax a b))) expression)]
168+
(replace-vars (list (list a fmin a b) (list b fmax a b)) expression)]
169169
[(list 'abs var)
170170
(define repr (context-lookup context var))
171171
(define fabs (get-fpcore-impl 'fabs (repr->prop repr) (list repr)))

0 commit comments

Comments
 (0)