From c9e35c2ced92082c86f1ecb9ecd16c6230218c7c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 15:14:13 +1000 Subject: Cleanup: remove redundant double parenthesis --- source/blender/imbuf/intern/indexer.c | 2 +- source/blender/imbuf/intern/png.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c index a4f1f5e813a..7c2ced512f6 100644 --- a/source/blender/imbuf/intern/indexer.c +++ b/source/blender/imbuf/intern/indexer.c @@ -215,7 +215,7 @@ struct anim_index *IMB_indexer_open(const char *name) return NULL; } - if (((ENDIAN_ORDER == B_ENDIAN) != (header[8] == 'V'))) { + if ((ENDIAN_ORDER == B_ENDIAN) != (header[8] == 'V')) { for (i = 0; i < idx->num_entries; i++) { BLI_endian_switch_int32(&idx->entries[i].frameno); BLI_endian_switch_uint64(&idx->entries[i].seek_pos); diff --git a/source/blender/imbuf/intern/png.c b/source/blender/imbuf/intern/png.c index df6959ca90b..1736329cbff 100644 --- a/source/blender/imbuf/intern/png.c +++ b/source/blender/imbuf/intern/png.c @@ -129,7 +129,7 @@ bool imb_savepng(struct ImBuf *ibuf, const char *filepath, int flags) /* use the jpeg quality setting for compression */ int compression; - compression = (int)(((float)(ibuf->foptions.quality) / 11.1111f)); + compression = (int)((float)(ibuf->foptions.quality) / 11.1111f); compression = compression < 0 ? 0 : (compression > 9 ? 9 : compression); if (ibuf->float_colorspace || (ibuf->colormanage_flag & IMB_COLORMANAGE_IS_DATA)) { -- cgit v1.2.3