From 4a64b36029872034c9c138738010ced47b48e045 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 12 Apr 2016 11:26:06 +1000 Subject: Cleanup: use bool --- source/blender/imbuf/intern/jp2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/jp2.c b/source/blender/imbuf/intern/jp2.c index 570ca5ba06e..390f2502ee7 100644 --- a/source/blender/imbuf/intern/jp2.c +++ b/source/blender/imbuf/intern/jp2.c @@ -63,12 +63,12 @@ enum { DCP_CINEMA4K = 4, }; -static int check_jp2(const unsigned char *mem) /* J2K_CFMT */ +static bool check_jp2(const unsigned char *mem) /* J2K_CFMT */ { return memcmp(JP2_HEAD, mem, sizeof(JP2_HEAD)) ? 0 : 1; } -static int check_j2k(const unsigned char *mem) /* J2K_CFMT */ +static bool check_j2k(const unsigned char *mem) /* J2K_CFMT */ { return memcmp(J2K_HEAD, mem, sizeof(J2K_HEAD)) ? 0 : 1; } @@ -133,7 +133,7 @@ struct ImBuf *imb_jp2_decode(const unsigned char *mem, size_t size, int flags, c unsigned int i, i_next, w, h, planes; unsigned int y; int *r, *g, *b, *a; /* matching 'opj_image_comp.data' type */ - int is_jp2, is_j2k; + bool is_jp2, is_j2k; opj_dparameters_t parameters; /* decompression parameters */ -- cgit v1.2.3