mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-06 23:54:47 +00:00
GetShift(int mask) can be called with mask==0, causing it to go into an infinite loop. Note: GetShift(mask) will return 0 for a mask of both 0 and -1. The assumption is that if mask == 0, then the corresponding bits for which we're calculating the shift, are also 0.