if ((int) *current++ != sizeof(long)) to if ((int) *current++ != sizeof(IV))