Skip to content

Commit

Permalink
oops, ref cases were reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
duckpilot committed Jul 20, 2010
1 parent 374c692 commit 8e3a6aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/generator/gen_aux.ml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ let rec gen_to qual_id t x =
| Option (_loc, t) -> | Option (_loc, t) ->
<:expr< Orpc_onc.to_option (fun x -> $gen_to t <:expr< x >>$) $x$ >> <:expr< Orpc_onc.to_option (fun x -> $gen_to t <:expr< x >>$) $x$ >>


| Ref (_loc, t) -> gen_to t <:expr< ! $x$ >> | Ref (_loc, t) -> <:expr< ref $gen_to t x$ >>


| Apply (_loc, mdl, id, args) -> | Apply (_loc, mdl, id, args) ->
<:expr< <:expr<
Expand Down Expand Up @@ -323,8 +323,7 @@ let rec gen_of qual_id t v =
| Option (_loc, t) -> | Option (_loc, t) ->
<:expr< Orpc_onc.of_option (fun v -> $gen_of t <:expr< v >>$) $v$ >> <:expr< Orpc_onc.of_option (fun v -> $gen_of t <:expr< v >>$) $v$ >>


| Ref (_loc, t) -> | Ref (_loc, t) -> gen_of t <:expr< ! $v$ >>
<:expr< ref ($gen_of t v$) >>


| Apply (_loc, mdl, id, args) -> | Apply (_loc, mdl, id, args) ->
<:expr< <:expr<
Expand Down

0 comments on commit 8e3a6aa

Please sign in to comment.