diff options
Diffstat (limited to 'source/blender/imbuf/intern/iris.c')
-rw-r--r-- | source/blender/imbuf/intern/iris.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/iris.c b/source/blender/imbuf/intern/iris.c index 8370f1934c8..adbf3659d3a 100644 --- a/source/blender/imbuf/intern/iris.c +++ b/source/blender/imbuf/intern/iris.c @@ -221,7 +221,7 @@ static void test_endian_zbuf(struct ImBuf *ibuf) int *zval; if( BIG_LONG(1) == 1 ) return; - if(ibuf->zbuf==0) return; + if(ibuf->zbuf == NULL) return; len= ibuf->x*ibuf->y; zval= ibuf->zbuf; @@ -276,14 +276,14 @@ struct ImBuf *imb_loadiris(unsigned char *mem, size_t size, int flags) readheader(inf, &image); if(image.imagic != IMAGIC) { fprintf(stderr,"longimagedata: bad magic number in image file\n"); - return(0); + return(NULL); } rle = ISRLE(image.type); bpp = BPP(image.type); if(bpp != 1 && bpp != 2) { fprintf(stderr,"longimagedata: image must have 1 or 2 byte per pix chan\n"); - return(0); + return(NULL); } xsize = image.xsize; @@ -826,7 +826,7 @@ int imb_saveiris(struct ImBuf * ibuf, const char *name, int flags) int ret; zsize = (ibuf->depth + 7) >> 3; - if (flags & IB_zbuf && ibuf->zbuf != 0) zsize = 8; + if (flags & IB_zbuf && ibuf->zbuf != NULL) zsize = 8; IMB_convert_rgba_to_abgr(ibuf); test_endian_zbuf(ibuf); |