Casting a negative value??

Right. I just copied a friend's code that he created in a C compiler to test this. That is not the issue, though, but thanks otherwise I guess...