[?] invalid operands to binary &

R

Richard Eich

gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)

source snippet:

....

int i = 17 ;

if ( 0x03 & i )
....


produces 'invalid operands to binary &'

Since both 0x03 and i are integral operands, I don't get it.
 
R

Richard Eich

(e-mail address removed) wrote...
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)

source snippet:

...

int i = 17 ;

if ( 0x03 & i )
...


produces 'invalid operands to binary &'

Since both 0x03 and i are integral operands, I don't get it.

Nevermind. The problem was "4am and a Stupid Programmer" .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top