Mercurial > hg > orthanc
diff OrthancFramework/Sources/Images/JpegWriter.cpp @ 5548:ca8442691f16
fix for armel
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Mar 2024 21:53:41 +0100 |
parents | 17dd8b26d0ec |
children | dcbf0c776945 |
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); }