X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8326d649c00a47d3e77770a8e0a0a3b7ead56bb..68f146206ff65cfafdf88c154aece854a0ba4864:/src/cocoa/cursor.mm diff --git a/src/cocoa/cursor.mm b/src/cocoa/cursor.mm index 23d5be6cbb..f5b548cc42 100644 --- a/src/cocoa/cursor.mm +++ b/src/cocoa/cursor.mm @@ -212,8 +212,9 @@ NSCursor* wxGetStockCursor( short sIndex ) //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; } }