Skip to content

Commit 153f73a

Browse files
committed
cast is safe here because read_size is always >=0
Avoids a warning from MSVC
1 parent 2519e9b commit 153f73a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/osmium/io/detail/read_write.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ namespace osmium {
219219
return false;
220220
}
221221
assert(read_size <= to_read);
222-
to_read -= read_size;
222+
to_read -= static_cast<unsigned int>(read_size);
223223
}
224224

225225
return true;

0 commit comments

Comments
 (0)