Author: post
Date: 2010-11-14 13:44:34 +0100 (Sun, 14 Nov 2010)
New Revision: 293
Modified:
RawSpeed/RawDecoder.cpp
Log:
Use our own type for 64 bit int.
Modified: RawSpeed/RawDecoder.cpp
===================================================================
--- RawSpeed/RawDecoder.cpp 2010-11-14 12:37:27 UTC (rev 292)
+++ RawSpeed/RawDecoder.cpp 2010-11-14 12:44:34 UTC (rev 293)
@@ -76,7 +76,7 @@
ByteStream in(mFile->getData(slice.offset), slice.count);
iPoint2D size(width, slice.h);
iPoint2D pos(0, offY);
- bitPerPixel = (int)((__int64)(slice.count * 8) / (slice.h * width));
+ bitPerPixel = (int)((uint64)(slice.count * 8) / (slice.h * width));
try {
readUncompressedRaw(in, size, pos, width*bitPerPixel / 8, bitPerPixel,
true);
} catch (RawDecoderException e) {
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit