Re: [Dvdauthor-developer] Bitwise "and" comparison operator generates parse error...

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]> Tue, 11 Dec 2012 19:54:33 +1300
Newsgroups gmane.comp.multimedia.dvdauthor.user
Organization Geek Central
Message-ID <[email protected]>
On Fri, 7 Dec 2012 23:04:31 -0600, Micah Quinn wrote:

> The equivalent in 'C' would be the following:
> 
> if ( g0 & 2 )
>     printf("Bit one is set\n");
> if ( g0 & 4 )
>     printf("Bit two is set\n");
> if ( g0 & 8 )
>     printf("Bit three is set\n");

Try

    if ((g0 & 2) != 0)
       ...

etc.

Note that you will either need to escape “&” as “&amp;”, or put the
instruction sequence in a <![CDATA[ ... ]]> section.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d