Skip to content

Commit 8c4edf7

Browse files
committed
fix(Stream): fix implicit ssize_t cast issues with some compilers
1 parent 880a7ef commit 8c4edf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/zenkit/Stream.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ namespace zenkit {
217217

218218
cb(w);
219219

220-
auto len = static_cast<ssize_t>(w->tell()) - size_off - sizeof(uint32_t);
220+
auto len = static_cast<ssize_t>(w->tell()) - size_off - static_cast<ssize_t>(sizeof(uint32_t));
221221
w->seek(size_off, Whence::BEG);
222222
w->write_uint(static_cast<uint32_t>(len));
223223
w->seek(len, Whence::CUR);

0 commit comments

Comments
 (0)