# [PATCH] fix an 'dubious one-bit signed bitfield' error

2 messages from 2017-11-03 to 2017-11-03. Participants: Ramsay Jones, Jeff Hostetler.
Thread: https://gitlist.dev/t/47113

## Ramsay Jones, 2017-11-03 17:05

Subject: [PATCH] fix an 'dubious one-bit signed bitfield' error
Message-ID: <7b066cbc-416b-b870-5fd5-3673ece036f8@ramsayjones.plus.com>
URL: https://gitlist.dev/e/7b066cbc-416b-b870-5fd5-3673ece036f8%40ramsayjones.plus.com

```

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---

Hi Jeff,

If you need to re-roll your 'jh/object-filtering' branch, could
you please squash this into the relevant commit (b87fd93d81,
"list-objects: filter objects in traverse_commit_list", 02-11-2017).

[This error was issued by sparse]

Thanks!

ATB,
Ramsay Jones

 list-objects-filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/list-objects-filter.c b/list-objects-filter.c
index 7f2842547..d9e626be8 100644
--- a/list-objects-filter.c
+++ b/list-objects-filter.c
@@ -191,7 +191,7 @@ static void *filter_blobs_limit__init(
  */
 struct frame {
 	int defval;
-	int child_prov_omit : 1;
+	unsigned int child_prov_omit : 1;
 };
 
 struct filter_sparse_data {
-- 
2.15.0

```

## Jeff Hostetler, 2017-11-03 17:26

Subject: Re: [PATCH] fix an 'dubious one-bit signed bitfield' error
Message-ID: <c9ac794b-c864-fa37-99b5-befe4d45b37a@jeffhostetler.com>
URL: https://gitlist.dev/e/c9ac794b-c864-fa37-99b5-befe4d45b37a%40jeffhostetler.com
In-Reply-To: <7b066cbc-416b-b870-5fd5-3673ece036f8@ramsayjones.plus.com>

```
d'oh.  thanks!

On 11/3/2017 1:05 PM, Ramsay Jones wrote:
> 
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
> 
> Hi Jeff,
> 
> If you need to re-roll your 'jh/object-filtering' branch, could
> you please squash this into the relevant commit (b87fd93d81,
> "list-objects: filter objects in traverse_commit_list", 02-11-2017).
> 
> [This error was issued by sparse]
> 
> Thanks!
> 
> ATB,
> Ramsay Jones
> 
>   list-objects-filter.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/list-objects-filter.c b/list-objects-filter.c
> index 7f2842547..d9e626be8 100644
> --- a/list-objects-filter.c
> +++ b/list-objects-filter.c
> @@ -191,7 +191,7 @@ static void *filter_blobs_limit__init(
>    */
>   struct frame {
>   	int defval;
> -	int child_prov_omit : 1;
> +	unsigned int child_prov_omit : 1;
>   };
>   
>   struct filter_sparse_data {
> 

```
