(ITS#8301) signed/unsigned confusion in ber_get_next()