commit | 10bb01bbf838f11c21b364b3ecbba71ace460796 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sun Jan 05 17:00:06 2014 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sun Jan 05 17:00:06 2014 +0000 |
tree | 5560a4d9398af092dcdd2ae12b4d574dff137c47 | |
parent | 5fd5a234915093eed92619c91d2ab9d9935d3445 [diff] [blame] |
diff --git a/coders/jp2.c b/coders/jp2.c index 56cf3d0..b3f2d27 100644 --- a/coders/jp2.c +++ b/coders/jp2.c
@@ -238,7 +238,7 @@ image=(Image *) context; count=ReadBlob(image,(ssize_t) length,(unsigned char *) buffer); if (count == 0) - return(-1); + return((OPJ_SIZE_T) -1); return((OPJ_SIZE_T) count); }