Files
macports-ports/graphics/exact-image/files/patch-codecs-jpeg2000.diff

20 lines
645 B
Diff

--- codecs/jpeg2000.cc.orig 2022-03-18 01:34:48.000000000 -0700
+++ codecs/jpeg2000.cc 2022-03-18 01:38:53.000000000 -0700
@@ -67,14 +67,14 @@
return stream;
}
-static int cpp_jas_read (jas_stream_obj_t* obj, char* buf, int cnt)
+static int cpp_jas_read (jas_stream_obj_t* obj, char* buf, unsigned int cnt)
{
std::istream* stream = (std::istream*) obj;
stream->read (buf, cnt);
return cnt;
}
-static int cpp_jas_write (jas_stream_obj_t* obj, char* buf, int cnt)
+static int cpp_jas_write (jas_stream_obj_t* obj, const char* buf, unsigned int cnt)
{
std::ostream* stream = (std::ostream*) obj;
stream->write (buf, cnt);