final int size = data.length; for(int i = 0; i< size; i++){ if(data[i] == 0xffffffff) data[i] = 0x80ffffff; }