Mercurial > hg > orthanc
changeset 5602:e4e7ca3d206e find-refactoring
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 May 2024 07:09:49 +0200 |
parents | aafe402ec950 |
children | 3f24eb4013d8 |
files | OrthancServer/Sources/Database/FindResponse.cpp OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/FindResponse.cpp Tue May 07 21:24:46 2024 +0200 +++ b/OrthancServer/Sources/Database/FindResponse.cpp Wed May 08 07:09:49 2024 +0200 @@ -443,7 +443,7 @@ { Json::Value u = Json::arrayValue; u.append(info.GetUuid()); - u.append(info.GetUncompressedSize()); + u.append(static_cast<Json::UInt64>(info.GetUncompressedSize())); target[EnumerationToString(info.GetContentType())] = u; }
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Tue May 07 21:24:46 2024 +0200 +++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Wed May 08 07:09:49 2024 +0200 @@ -386,7 +386,7 @@ FileInfo info; if (resource.LookupAttachment(info, FileContentType_Dicom)) { - target["FileSize"] = info.GetUncompressedSize(); + target["FileSize"] = static_cast<Json::UInt64>(info.GetUncompressedSize()); target["FileUuid"] = info.GetUuid(); } else