From 0637b42ccc13cf93225ae352346b74eb30b4dc99 Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Fri, 18 Dec 1992 20:40:22 +0000
Subject: [PATCH] Changed a use of LOOP destructuring to a DESTRUCTURING-BIND
 because LOOP has assignment semantics and we were closing over one of the
 vars.

---
 compiler/saptran.lisp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/compiler/saptran.lisp b/compiler/saptran.lisp
index 567f24486..aa4215218 100644
--- a/compiler/saptran.lisp
+++ b/compiler/saptran.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/saptran.lisp,v 1.2 1992/02/21 22:01:32 wlott Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/saptran.lisp,v 1.3 1992/12/18 20:40:22 wlott Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -97,10 +97,10 @@
 
 ;;;; Transforms for converting sap relation operators.
 
-(loop
-  for (sap-fun int-fun) in '((sap< <) (sap<= <=) (sap= =) (sap>= >=) (sap> >))
-  do (deftransform sap-fun ((x y) '* '* :eval-name t)
-       `(,int-fun (sap-int x) (sap-int y))))
+(dolist (info '((sap< <) (sap<= <=) (sap= =) (sap>= >=) (sap> >)))
+  (destructuring-bind (sap-fun int-fun) info
+    (deftransform sap-fun ((x y) '* '* :eval-name t)
+      `(,int-fun (sap-int x) (sap-int y)))))
 
 
 ;;;; Transforms for optimizing sap+
-- 
GitLab