Mercurial > hg > orthanc
changeset 5548:ca8442691f16
fix for armel
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Mar 2024 21:53:41 +0100 |
parents | dca738d7846b |
children | dcbf0c776945 |
files | OrthancFramework/Sources/Images/JpegWriter.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/JpegWriter.cpp Thu Mar 28 17:49:04 2024 +0100 +++ b/OrthancFramework/Sources/Images/JpegWriter.cpp Fri Mar 29 21:53:41 2024 +0100 @@ -177,7 +177,7 @@ Internals::JpegErrorManager jerr; unsigned char* data = NULL; - size_t size; + unsigned long size; // jpeg_mem_dest() uses "unsigned long*" instead of "size_t*" if (setjmp(jerr.GetJumpBuffer())) { @@ -202,7 +202,7 @@ // Everything went fine, "setjmp()" didn't get called - jpeg.assign(reinterpret_cast<const char*>(data), size); + jpeg.assign(reinterpret_cast<const char*>(data), static_cast<size_t>(size)); free(data); }