Mercurial > hg > orthanc
changeset 6748:afd1b67a765a
fix signedness
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Sun, 10 May 2026 12:00:58 +0200 |
| parents | 6e2c28b976b4 |
| children | 3e56913120ab |
| files | OrthancServer/Sources/OrthancRestApi/OrthancRestArchive.cpp |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestArchive.cpp Fri May 08 13:50:16 2026 +0200 +++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestArchive.cpp Sun May 10 12:00:58 2026 +0200 @@ -430,7 +430,7 @@ { try { - if (chunk.size() > std::numeric_limits<std::streamsize>::max()) + if (static_cast<int64_t>(chunk.size()) > std::numeric_limits<std::streamsize>::max()) { throw OrthancException(ErrorCode_InternalError, "Chunk too large"); }
