[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] Re: Zero as False
- From: Paige DePol <lual@...>
- Date: Tue, 19 Nov 2013 19:08:49 -0600
> On Nov 19, 2013, at 6:54 PM, Coda Highland <chighland@gmail.com> 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! :)
~pmd~
Attachment:
zeroisfalse-fixed.patch
Description: Binary data
- References:
- Zero as False, Paige DePol
- Re: Zero as False, Paige DePol
- Re: Zero as False, Paige DePol
- Re: Zero as False, Daurnimator
- Re: Zero as False, Rena
- Re: Zero as False, Paige DePol
- Re: Zero as False, Coda Highland
- Re: Zero as False, Paige DePol
- Re: Zero as False, Coda Highland
- Re: Zero as False, Paige DePol
- [PATCH] Re: Zero as False, Paige DePol
- Re: [PATCH] Re: Zero as False, Coda Highland