]> granicus.if.org Git - apache/commitdiff
Clean up a signedness emit
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 14 Jun 2002 17:16:59 +0000 (17:16 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 14 Jun 2002 17:16:59 +0000 (17:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95676 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index 5a0b525bdd6c09a802274c125ea992dd337acdb3..82b2d9ff2310582cfa0e80a564227ea0429fd8da 100644 (file)
@@ -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,