diff --git a/taglib/ogg/oggpage.cpp b/taglib/ogg/oggpage.cpp index 2608500c..cd54014f 100644 --- a/taglib/ogg/oggpage.cpp +++ b/taglib/ogg/oggpage.cpp @@ -273,7 +273,8 @@ List Ogg::Page::paginate(const ByteVectorList &packets, if(strategy != Repaginate) { - size_t tableSize = std::accumulate(packets.cbegin(), packets.cend(), 0, + size_t tableSize = std::accumulate(packets.cbegin(), packets.cend(), + static_cast(0), [](size_t acc, const ByteVector &packet) { return acc + packet.size() / 255 + 1; });