These parentheses look wrong. I think it should be:

```if (obj->getObjID() & 0x01){```