git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41443
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//do the rest of those bits and alphas :)
for (int shift = 0; shift < 32; ++shift)
{
- data[i] |= ( !!( (pCursor->mask[i] & (1 << (shift >> 1) )) ) ) << shift;
- data[i] |= ( !( (pCursor->bits[i] & (1 << (shift >> 1) )) ) ) << ++shift;
+ const int bit = 1 << (shift >> 1);
+ data[i] |= ( !!( (pCursor->mask[i] & bit) ) ) << shift;
+ data[i] |= ( !( (pCursor->bits[i] & bit) ) ) << ++shift;
}
}