# HG changeset patch # User Sebastien Jodogne # Date 1730196502 -3600 # Node ID 3160d2b2beb9f764600fc2d6eefdfa561015100d # Parent 705be6d59d9bc53af1be57954ec5f7999a86bee7 fix build on recent versions of jsoncpp diff -r 705be6d59d9b -r 3160d2b2beb9 Plugin/DecodedImageAdapter.cpp --- a/Plugin/DecodedImageAdapter.cpp Tue Jun 11 12:57:30 2024 +0200 +++ b/Plugin/DecodedImageAdapter.cpp Tue Oct 29 11:08:22 2024 +0100 @@ -357,7 +357,7 @@ assert(converted.GetSize() == converted.GetWidth() * converted.GetHeight() * GetBytesPerPixel(converted.GetFormat())); result["Orthanc"]["Compression"] = "Deflate"; - result["sizeInBytes"] = converted.GetSize(); + result["sizeInBytes"] = static_cast(converted.GetSize()); std::string z; CompressUsingDeflate(z, GetGlobalContext(), converted.GetConstBuffer(), converted.GetSize()); @@ -482,7 +482,7 @@ result["Orthanc"]["IsSigned"] = (accessor.GetFormat() == Orthanc::PixelFormat_SignedGrayscale16); result["Orthanc"]["Compression"] = "Jpeg"; - result["sizeInBytes"] = converted.GetSize(); + result["sizeInBytes"] = static_cast(converted.GetSize()); std::string jpeg; WriteJpegToMemory(jpeg, GetGlobalContext(), converted, quality);