Skip to content

Commit

Permalink
minor eval fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tk744 committed Dec 19, 2020
1 parent 91c4980 commit 5fffa72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ and eval_exp (e: exp) (s: store) : value * store =
match v1 with
| V_bool b ->
if b then
eval_exp e1 s1
eval_exp e2 s1
else
eval_exp e2 s1
eval_exp e3 s1
| _ ->
raise_typ_exn "If-expression guard"
end

0 comments on commit 5fffa72

Please sign in to comment.