Is this statement generating any warning? In that case you need to fix it using
```c++
static_cast<int>(m_array[i]) ^= (~0)
```