Mercurial > hg > orthanc
changeset 6663:c00c3d82289c machine-spirits
reverting useless check
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Sun, 22 Mar 2026 11:26:21 +0100 |
| parents | 344064be379d |
| children | 14eabda1f718 |
| files | OrthancFramework/Sources/ChunkedBuffer.cpp |
| diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/ChunkedBuffer.cpp Sun Mar 22 11:18:49 2026 +0100 +++ b/OrthancFramework/Sources/ChunkedBuffer.cpp Sun Mar 22 11:26:21 2026 +0100 @@ -49,15 +49,6 @@ void ChunkedBuffer::AddChunkInternal(const void* chunkData, size_t chunkSize) { - { - uint64_t resultingSize = static_cast<uint64_t>(numBytes_) + static_cast<uint64_t>(chunkSize); - if (static_cast<uint64_t>(static_cast<size_t>(resultingSize)) != resultingSize) - { - // Guard for 32bit architectures - throw OrthancException(ErrorCode_NotEnoughMemory); - } - } - if (chunkSize == 0) { return;
