mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-12-22 04:13:33 +01:00
Fix tailcall bug
This commit is contained in:
parent
98ca250ed3
commit
5b22c9fabd
@ -386,7 +386,8 @@ let rec to_list ?(accu=[]) = function
|
||||
(trailing_zeros t + 1)::accu
|
||||
in
|
||||
logand t @@ minus_one t
|
||||
|> (to_list [@tailcall]) ~accu:newlist
|
||||
|> to_list ~accu:newlist
|
||||
(* |> (to_list [@tailcall]) ~accu:newlist tailcall does not work with 4.13*)
|
||||
#+end_src
|
||||
|
||||
#+begin_src ocaml :tangle (eval test-ml) :exports none
|
||||
|
Loading…
Reference in New Issue
Block a user