2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix build with GCC.

This commit is contained in:
John Preston
2022-07-19 22:32:15 +03:00
parent 45b875f1a1
commit b14b69272a
8 changed files with 3 additions and 12 deletions

View File

@@ -135,7 +135,7 @@ int64_t EmojiGenerator::Impl::seek(int64_t offset, int whence) {
switch (whence) {
case SEEK_SET: return offset;
case SEEK_CUR: return _deviceOffset + offset;
case SEEK_END: return _bytes.size() + offset;
case SEEK_END: return int64_t(_bytes.size()) + offset;
}
return int64_t(-1);
}();