]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_auth_bearer: Fix warning about signed bitfields. BZ 68294
authorYann Ylavic <ylavic@apache.org>
Tue, 5 Dec 2023 17:45:24 +0000 (17:45 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 5 Dec 2023 17:45:24 +0000 (17:45 +0000)
clang reports: implicit truncation from 'int' to a one-bit wide bit-field
               changes value from 1 to -1

Change authoritative_set and proxy_set bitfields to unsigned.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1914367 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth_bearer.c

index 3c6804dc0f3592691307f6f7baf76e98737eb39b..d127e1d7c3572ced2979c5b05038774520de3c68 100644 (file)
@@ -44,8 +44,8 @@ typedef struct {
     autht_provider_list *providers;
     int authoritative;
     ap_expr_info_t *proxy;
-    int authoritative_set:1;
-    int proxy_set:1;
+    unsigned int authoritative_set:1;
+    unsigned int proxy_set:1;
 } auth_bearer_config_rec;
 
 static void *create_auth_bearer_dir_config(apr_pool_t *p, char *d)