projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd5a23
)
(no commit message)
author
cristy
<urban-warrior@git.imagemagick.org>
Sun, 5 Jan 2014 17:00:06 +0000
(17:00 +0000)
committer
cristy
<urban-warrior@git.imagemagick.org>
Sun, 5 Jan 2014 17:00:06 +0000
(17:00 +0000)
coders/jp2.c
patch
|
blob
|
history
diff --git
a/coders/jp2.c
b/coders/jp2.c
index 56cf3d04852d0a2bf08cf141f18ebe632e37b851..b3f2d271d0ef22863a41d363b14d1e21c5fbc7a0 100644
(file)
--- a/
coders/jp2.c
+++ b/
coders/jp2.c
@@
-238,7
+238,7
@@
static OPJ_SIZE_T JP2ReadHandler(void *buffer,OPJ_SIZE_T length,void *context)
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);
}