Fix type for read-bitmap

Closes PR 14729