It shouldn't be an issue with the test suite. I added this line right after the
let data = stbi_load(... call
echo x
echo y
echo channels_in_file
echo data.repr
And it gave me this output:
2
2
4
Traceback (most recent call last)
tests.nim(56) tests
stb_image.nim(86) load
repr.nim(308) reprAny
repr.nim(252) reprAux
repr.nim(234) reprRef
repr.nim(271) reprAux
SIG
SEGV: Illegal storage access. (Attempt to read from nil?)
I find this very odd because the return parameters are fine, but the actual
returned value is not.