Wrong datatype used in visibilitymap_get_status

Started by Julien Rouhaudover 1 year ago3 messageshackers
Jump to latest
#1Julien Rouhaud
rjuju123@gmail.com

Hi,

I was reading the visibility map code and noticed that
visibilitymap_get_status() wasn't updated in a892234f830e AFAICS (Cc Robert and
Sawada-san) to return an empty set of flags rather than false in one code path,
so simple patch attached. Both have the same value so that likely explains why
it got unnoticed until now, although I assume that some compiler would
have eventually started to complain about that.

Attachments:

0001-Use-the-correct-data-type-in-visibilitymap_get_statu.patchtext/plain; charset=us-asciiDownload+1-2
#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Julien Rouhaud (#1)
Re: Wrong datatype used in visibilitymap_get_status

On Thu, Jul 24, 2025 at 03:50:17PM +0800, Julien Rouhaud wrote:

I was reading the visibility map code and noticed that
visibilitymap_get_status() wasn't updated in a892234f830e AFAICS (Cc Robert and
Sawada-san) to return an empty set of flags rather than false in one code path,
so simple patch attached. Both have the same value so that likely explains why
it got unnoticed until now, although I assume that some compiler would
have eventually started to complain about that.

+1, I'll go commit this.

--
nathan

#3Julien Rouhaud
rjuju123@gmail.com
In reply to: Nathan Bossart (#2)
Re: Wrong datatype used in visibilitymap_get_status

On Thu, Jul 24, 2025 at 09:56:00AM -0500, Nathan Bossart wrote:

On Thu, Jul 24, 2025 at 03:50:17PM +0800, Julien Rouhaud wrote:

I was reading the visibility map code and noticed that
visibilitymap_get_status() wasn't updated in a892234f830e AFAICS (Cc Robert and
Sawada-san) to return an empty set of flags rather than false in one code path,
so simple patch attached. Both have the same value so that likely explains why
it got unnoticed until now, although I assume that some compiler would
have eventually started to complain about that.

+1, I'll go commit this.

Thanks.