fix _update_varint_from_to declaration