Skip to content

Commit 8c74bfe

Browse files
committed
spng_set_option(): fix warning (fixes #184)
1 parent a4270af commit 8c74bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spng/spng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5216,7 +5216,7 @@ int spng_set_option(spng_ctx *ctx, enum spng_option option, int value)
52165216
case SPNG_CHUNK_COUNT_LIMIT:
52175217
{
52185218
if(value < 0) return 1;
5219-
if(value > ctx->chunk_count_total) return 1;
5219+
if(value > (int)ctx->chunk_count_total) return 1;
52205220
ctx->chunk_count_limit = value;
52215221
break;
52225222
}

0 commit comments

Comments
 (0)