Skip to content

Commit

Permalink
fix possible merge error with jn/gensym2
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jan 30, 2015
1 parent 055dcdd commit e41a507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@
(define (lower-nd-comprehension atype expr ranges)
(let ((result (make-jlgensym))
(ri (gensy))
(oneresult (make-jlgensym)))
(oneresult (gensy)))
;; evaluate one expression to figure out type and size
;; compute just one value by inserting a break inside loops
(define (evaluate-one ranges)
Expand Down Expand Up @@ -2123,6 +2123,7 @@
;; Evaluate the comprehension
`(scope-block
(block
(local ,oneresult)
,(evaluate-one ranges)
(= ,result (call (top Array) ,(if atype atype `(call (top eltype) ,oneresult))
,@(compute-dims ranges 1)))
Expand Down

0 comments on commit e41a507

Please sign in to comment.