Author: post
Date: 2011-11-24 16:46:25 +0100 (Thu, 24 Nov 2011)
New Revision: 397

Modified:
   RawSpeed/OrfDecoder.cpp
Log:
Fix host endianness detection in ORF.

Modified: RawSpeed/OrfDecoder.cpp
===================================================================
--- RawSpeed/OrfDecoder.cpp     2011-11-23 20:31:56 UTC (rev 396)
+++ RawSpeed/OrfDecoder.cpp     2011-11-24 15:46:25 UTC (rev 397)
@@ -290,7 +290,7 @@
 
           int32 offset;
           const uchar8* data = imagep->getData();
-          if (makertiff.tiff_endian = makertiff.getHostEndian())
+          if (makertiff.tiff_endian == makertiff.getHostEndian())
             offset = *(int32*)data;
           else
             offset = (unsigned int)data[0] << 24 | (unsigned int)data[1] << 16 
| (unsigned int)data[2] << 8 | (unsigned int)data[3];


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to