Crowlang / crow

Crow Lisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sampling an empty array crashes

Nodnarb12500 opened this issue · comments

defvar emptyArray (make-array 0)
(sample emptyArray)

hangs and very quickly takes all your ram.

Hah, I never got around to fixing that I guess, I know at one point I was going to...

i relooked at my empty array test and found something else to be the cause

(defvar emptyArray (make-array 0)
(println (sample emptyArray))

i forgot a ')' on the defvar line

sample crashes with:
fish: Job 1, '~/Documents/GIT/crow/crow sampl…' terminated by signal SIGFPE (Floating point exception)

Yeah its still broken though... I have a fix coming later tonight.