rope: use the correct type for read [coverity]