Mercurial > hg > orthanc
changeset 6408:c5168877f92a
cppcheck: truncLongCastReturn
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Thu, 13 Nov 2025 06:25:54 +0100 |
| parents | 8451e20795fb |
| children | c305e6e2bf08 |
| files | OrthancFramework/Sources/Images/ImageAccessor.cpp |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/ImageAccessor.cpp Thu Nov 13 06:23:56 2025 +0100 +++ b/OrthancFramework/Sources/Images/ImageAccessor.cpp Thu Nov 13 06:25:54 2025 +0100 @@ -141,7 +141,7 @@ size_t ImageAccessor::GetSize() const { - return GetHeight() * GetPitch(); + return static_cast<size_t>(GetHeight()) * static_cast<size_t>(GetPitch()); } const void *ImageAccessor::GetConstBuffer() const
