Remove unsigned type from 'mask'