[vlc-devel] [PATCH] 6 small npapi patch.

Sergey Radionov rsatom at gmail.com
Mon Nov 14 07:04:19 CET 2011


2011/11/14 Sergey Radionov <rsatom at gmail.com>

>
>
> 2011/11/14 Sergey Radionov <rsatom at gmail.com>
>
>>
>> > > About the "!=0" addition I think it would be clearer if you add a "!!"
>>> > > in front of the variable to make sure it is 0 or 1.
>>> > > Does that fix the warning?
>>> > >
>>> > No, it is not work. I try to eliminate
>>> > *
>>> > warning C4800: 'int' : forcing value to bool 'true' or 'false'
>>> (performance
>>> > warning)*
>>> >
>>> > But '!' (and therefore '!!') need bool argument, so it is not eliminate
>>> > problem.
>>>
>> I think I say stupidity. I will see C++ standard to find why '!!' not
> solve warnining...
>
Yes, I was wrong. '!!'  solve warning. I simply type it to wrong place :)
sorry.

But, is using of '!!' more typical in such case, rather then "!=0" ? I
really never strongly think about this issue, and need advice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111114/2bb7d55e/attachment.html>


More information about the vlc-devel mailing list