Make tidx_mask_t unsigned