Skip to content

Commit

Permalink
Fixing 32-bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
flamewing committed Oct 20, 2023
1 parent 53ce000 commit 1577428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mdcomp/lzss.hh
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ inline void lzss_copy(
std::vector<char> buffer(static_cast<size_t>(length));
dest.seekg(offset);
using diff_t = std::make_signed_t<size_t>;
diff_t distance = dest.tellp() - offset;
diff_t distance = static_cast<diff_t>(dest.tellp()) - offset;
if (length > distance) {
dest.read(buffer.data(), distance);
auto count = length - distance;
Expand Down

0 comments on commit 1577428

Please sign in to comment.