diff OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 5602:e4e7ca3d206e find-refactoring

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 May 2024 07:09:49 +0200
parents 8796c100aaf8
children 6e2dad336446
line wrap: on
line diff
--- 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