Return proper write() status from RAWCodec::writeImage() function. This is
not enough to disentangle the port from C++98, but a good change regardless.
This commit is contained in:
14
graphics/exact-image/files/patch-codecs_raw.cc
Normal file
14
graphics/exact-image/files/patch-codecs_raw.cc
Normal file
@@ -0,0 +1,14 @@
|
||||
--- codecs/raw.cc.orig 2011-01-14 16:30:13 UTC
|
||||
+++ codecs/raw.cc
|
||||
@@ -71,9 +71,8 @@ bool RAWCodec::writeImage (std::ostream* stream, Image
|
||||
if (!image.getRawData())
|
||||
return false;
|
||||
|
||||
- return stream->write ((char*)image.getRawData(), image.stride()*image.h)
|
||||
- /* ==
|
||||
- (size_t) image.stride()*image.h*/;
|
||||
+ stream->write ((char*)image.getRawData(), image.stride()*image.h);
|
||||
+ return stream->good();
|
||||
}
|
||||
|
||||
RAWCodec raw_loader;
|
||||
Reference in New Issue
Block a user