[ros-dev] [ros-diffs] [sginsberg] 42829: - svchost

Jose Catena jc1 at diwaves.com
Sat Sep 12 04:33:33 CEST 2009


>> // if even
>> If (!x & 1)

> If the code and the comments disagree, then both are probably wrong. ;)

Indeed, I was wrong in the even example. It's:
if (~x & 1)
// or
if (!(x & 1))

And yes, I just saw it was already implemented, sorry.

Jose Catena
DIGIWAVES S.L.





More information about the Ros-dev mailing list