Skip to content

Commit

Permalink
fix 32bit builds (touch #1854)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmz committed Oct 1, 2023
1 parent cc970c0 commit 9223702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NetRocks/src/Protocol/SHELL/ProtocolSHELL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ class SHELLFileReader : public IFileReader
{
std::shared_ptr<WayToShell> _way;

unsigned long _chunk {0};
size_t _chunk {0};
bool _finished{false};
bool _aborting{false};

Expand All @@ -588,7 +588,7 @@ class SHELLFileReader : public IFileReader
throw ProtocolError("read error");
}
if (wr.index == 0) {
_chunk = strtoul(wr.stdout_lines.back().c_str() + 6, nullptr, 10);
_chunk = (size_t)strtoul(wr.stdout_lines.back().c_str() + 6, nullptr, 10);
} else {
_chunk = 0;
}
Expand Down

0 comments on commit 9223702

Please sign in to comment.