Changing flags types to machine-integer to optimize storing on 8/16bit archs