]> git.imager.perl.org - imager.git/blobdiff - img8.c
handle failure to clone the log filehandle when cloning the Imager context
[imager.git] / img8.c
diff --git a/img8.c b/img8.c
index c7804733f30794829ea7f9c643cca3f3fc8e5a42..2893a486c378c8faee115fb4650a4efbc7c5f7f7 100644 (file)
--- a/img8.c
+++ b/img8.c
@@ -173,7 +173,7 @@ im_img_empty_ch(pIMCTX, i_img *im,i_img_dim x,i_img_dim y,int ch) {
   im->xsize    = x;
   im->ysize    = y;
   im->channels = ch;
-  im->ch_mask  = MAXINT;
+  im->ch_mask  = ~0U;
   im->bytes=bytes;
   if ( (im->idata=mymalloc(im->bytes)) == NULL) 
     im_fatal(aIMCTX, 2,"malloc() error\n"); 
@@ -227,7 +227,7 @@ Internal function.
 This is the function kept in the i_f_gpix member of an i_img object.
 It does normal retrieval of a pixel from the image with range checking.
 
-Returns 0 if the pixel could be set, -1 otherwise.
+Returns 0 if the pixel could be retrieved, -1 otherwise.
 
 =cut
 */