tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.03k stars 48 forks source link

Unexpected crash with mif and cto functions #199

Closed ChengCat closed 5 years ago

ChengCat commented 6 years ago

The following program will crash, but it works fine if I remove (attr cto).

(import cstdio)
(def f (fn (attr cto) intern bool (void)
  true))
(def main (fn extern-c int (void)
  (printf "%d\n" (mif (f) 1 2))))
tomhrr commented 5 years ago

Thanks for this, the problem has now been fixed.