Description: Fix build on armel and armhf
Author: Sebastien Jodogne <s.jodogne@gmail.com>
Forwarded: yes
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: Orthanc-1.12.3/OrthancFramework/Sources/Images/JpegWriter.cpp
===================================================================
--- Orthanc-1.12.3.orig/OrthancFramework/Sources/Images/JpegWriter.cpp
+++ Orthanc-1.12.3/OrthancFramework/Sources/Images/JpegWriter.cpp
@@ -177,7 +177,7 @@ namespace Orthanc
     Internals::JpegErrorManager jerr;
 
     unsigned char* data = NULL;
-    size_t size;
+    unsigned long size;
 
     if (setjmp(jerr.GetJumpBuffer())) 
     {
@@ -202,7 +202,7 @@ namespace Orthanc
 
     // 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);
   }
 
