lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> On Nov 19, 2013, at 6:54 PM, Coda Highland <> wrote:
> Oops. Now -1 is false.
> /s/ Adam

Erm, yea, I guess it is, wasn't even thinking of negative numbers! LOL, good catch, thank you! ;)

Pretty easy fix though, just change the (number > 0) == bool to (number != 0) == bool

Seriously though, I don't know why I didn't think of negative numbers, they are just as important as positive numbers! ;)

I have attached an updated patch that uses != instead of > for the comparison! :)


Attachment: zeroisfalse-fixed.patch
Description: Binary data