WaE: reorder initializations to prevent compiler warning.
WaE: compare unsigned values.