Skip to content

Commit

Permalink
Fixed bug in call (L3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulytchev committed Jan 24, 2024
1 parent 67c3c66 commit 6b6fcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions L3/L3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ module Program =
let (st', i', o'), fv :: args = evals c (f :: es) in
(match fv with
| `C (fargs, st, s) ->
let st'' = alloc st (fargs, args) in
let st'' = alloc st' (fargs, args) in
let (st''', i'', o''), v = eval (st'', i', o') s in
(restore st fargs st''', i'', o''), v
(restore st' fargs st''', i'', o''), v

| _ -> failwith "a callee did not evaluate to a closure"
)
Expand Down

0 comments on commit 6b6fcf8

Please sign in to comment.