Crowlang / crow

Crow Lisp
MIT License
6 stars 2 forks source link

sampling an empty array crashes #62

Open Nodnarb12500 opened 1 year ago

Nodnarb12500 commented 1 year ago
defvar emptyArray (make-array 0)
(sample emptyArray)

hangs and very quickly takes all your ram.

Bravotic commented 1 year ago

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

Nodnarb12500 commented 1 year ago

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)

Bravotic commented 1 year ago

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