https://issues.apache.org/bugzilla/show_bug.cgi?id=51960

Christopher Schultz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |trivial

--- Comment #1 from Christopher Schultz <[email protected]> 
2011-10-05 14:44:31 UTC ---
While this should probably be changed, boolean "true" is defined as 8-bit
unsigned 1 and "false" is defined as 8-bit unsigned 0. That means that & and &&
are equivalent

&&     false   true
false  false   false
true   false   true

&      0       1
0      0       0
1      0       1

I'm actually surprised that the compiler actually allows this, as & should
return an integral type and not a boolean. If you try to say "if(0)", you get a
compiler error.

*shrug*

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to