From 7a48798fdaebb530b7929ff8ed0aab8f0b174b47 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 14 Jun 2002 17:16:59 +0000 Subject: [PATCH] Clean up a signedness emit git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95676 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_deflate.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 5a0b525bdd..82b2d9ff23 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -128,7 +128,7 @@ typedef struct deflate_filter_config_t { int windowSize; int memlevel; - int bufferSize; + apr_size_t bufferSize; char *noteName; } deflate_filter_config; @@ -191,13 +191,14 @@ static const char *deflate_set_buffer_size(cmd_parms *cmd, void *dummy, { deflate_filter_config *c = ap_get_module_config(cmd->server->module_config, &deflate_module); + int n = atoi(arg); - c->bufferSize = atoi(arg); - - if (c->bufferSize <= 0) { + if (n <= 0) { return "DeflateBufferSize should be positive"; } + c->bufferSize = (apr_size_t)n; + return NULL; } static const char *deflate_set_note(cmd_parms *cmd, void *dummy, -- 2.50.1