termux-packages/packages/graphicsmagick/coders-jp2.c.patch
Tee KOBAYASHI 3807007384 graphicsmagick: Update to 1.3.37
* Add dependency on libwebp
2022-03-02 06:02:01 +09:00

21 lines
685 B
Diff

--- a/coders/jp2.c
+++ b/coders/jp2.c
@@ -313,7 +313,7 @@
#if MAGICK_JP2_OLD_STREAM_INTERFACE
static int BlobRead(jas_stream_obj_t *object,char *buffer,const int length)
#else
-static int BlobRead(jas_stream_obj_t *object,char *buffer,unsigned length)
+static ssize_t BlobRead(jas_stream_obj_t *object,char *buffer,size_t length)
#endif
{
size_t
@@ -329,7 +329,7 @@
#if MAGICK_JP2_OLD_STREAM_INTERFACE
static int BlobWrite(jas_stream_obj_t *object,char *buffer,const int length)
#else
-static int BlobWrite(jas_stream_obj_t *object,const char *buffer,unsigned length)
+static ssize_t BlobWrite(jas_stream_obj_t *object,const char *buffer,size_t length)
#endif
{
size_t