Skip to content

Commit

Permalink
change remaining uses of "(call error ..." in lowering to "(call (top…
Browse files Browse the repository at this point in the history
… error) ..."
  • Loading branch information
JeffBezanson committed Aug 22, 2013
1 parent 12612a7 commit 0baa11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@
(ncols (length a)))
`(block
(if (call (top !) (call (top isa) ,t Type))
(call error "invalid array index"))
(call (top error) "invalid array index"))
(= ,result (call (top Array) ,t 1 ,ncols))
,@(map (lambda (x i) `(call (top setindex!) ,result ,x ,i))
a (cdr (iota (+ ncols 1))))
Expand All @@ -1577,7 +1577,7 @@
(error "invalid array literal")
`(block
(if (call (top !) (call (top isa) ,t Type))
(call error "invalid array index"))
(call (top error) "invalid array index"))
(= ,result (call (top Array) ,t ,nrows ,ncols))
,@(apply nconc
(map
Expand Down

0 comments on commit 0baa11b

Please sign in to comment.