From 88655ddcdb35bb349313d81b29726b4c81ff83d3 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Wed, 28 Dec 2016 20:13:22 +0100 Subject: [PATCH] core: fix some compilation warnings in zlib_utils.c --- src/gmio_core/internal/zlib_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmio_core/internal/zlib_utils.c b/src/gmio_core/internal/zlib_utils.c index 3ad7376..1799545 100644 --- a/src/gmio_core/internal/zlib_utils.c +++ b/src/gmio_core/internal/zlib_utils.c @@ -97,9 +97,9 @@ bool gmio_check_zlib_compress_options( int* error, const struct gmio_zlib_compress_options* z_opts) { if (z_opts != NULL) { - if (!(-1 <= z_opts->level && z_opts->level <= 9)) + if (z_opts->level > 9) *error = GMIO_ERROR_ZLIB_INVALID_COMPRESS_LEVEL; - if (!(0 <= z_opts->memory_usage && z_opts->memory_usage <= 9)) + if (z_opts->memory_usage > 9) *error = GMIO_ERROR_ZLIB_INVALID_COMPRESS_MEMORY_USAGE; } return gmio_no_error(*error);