summaryrefslogtreecommitdiff
path: root/src/configfile.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-07-02 03:03:19 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2023-05-03 23:11:34 -0400
commit96c1b1ddc168e50a52864df7aa09aaf6b6dbe714 (patch)
tree2117ba07fe01da9d614dd8d2351b374eefef1026 /src/configfile.c
parent5e5ba0408a24e6e1389e5c542839fe4e3e160a39 (diff)
downloadlighttpd-git-96c1b1ddc168e50a52864df7aa09aaf6b6dbe714.tar.gz
[core] _WIN32 casts to quiet some VS warnings
Diffstat (limited to 'src/configfile.c')
-rw-r--r--src/configfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configfile.c b/src/configfile.c
index 6a726745..50bedda1 100644
--- a/src/configfile.c
+++ b/src/configfile.c
@@ -2516,7 +2516,7 @@ int config_remoteip_normalize(buffer * const b, buffer * const tb) {
if (NULL != slash) {
char *nptr;
nm_bits = strtoul(slash + 1, &nptr, 10);
- if (*nptr || 0 == nm_bits || nm_bits > (NULL != colon ? 128 : 32)) {
+ if (*nptr || 0 == nm_bits || nm_bits > (NULL != colon ? 128u : 32u)) {
/*(also rejects (slash+1 == nptr) which results in nm_bits = 0)*/
return -1;
}