Skip to content

Commit

Permalink
Fix compiler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 15, 2025
1 parent bc6a5d9 commit 10ca738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/devices/tape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ void Tape::Erase()

uint64_t remaining = file_size - tape_position;
while (remaining >= 4) {
const uint64_t chunk = min(remaining, buf.size());
const uint64_t chunk = min(remaining, static_cast<uint64_t>(buf.size()));

file.write((const char*)buf.data(), chunk);
CheckForWriteError();
Expand Down

0 comments on commit 10ca738

Please sign in to comment.