Global search and elimination of 0xffffffff.
Each instance changed to something more appropriate and more portable.