On 18 September 2012 20:56, Fariborz Jahanian <[email protected]> wrote:
>
> On Sep 18, 2012, at 3:27 PM, Jordan Rose wrote:
>
> Just curious: were these unparenthesized actually causing failures for you?
>
>
> Yes, it was giving me the warning:
> comparison of literal 10 with expression of type 'bool' is always false
>
> This is because it is expanded into:
> if (!total == 10) { return 1; };
>
> In c++, (but not in c), comparing a bool to 10.

Should the assert definition in that file be changed instead?

> - Fariborz
>

Cheers,
Rafael
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to