> AI found another one in FuncnameGetCandidates() in namespace.c:
>
> Assert(nargs >= 0 || !(expand_variadic | expand_defaults));
>
> I think they belong to the same category and could be addressed together.

Whoa, this one is 18 years old!

Yes, I agree these should be addressed together. Neither issue is truly
problematic, but cleaning up the code would be nice.
Attached is the V2-patch fixing both places.

--
 best regards,
    Mikhail A. Gribkov




On Thu, Nov 26, 2026 at 4:39 AM Xuneng Zhou <[email protected]> wrote:

> Hi Mikhail,
>
> On Thu, Nov 26, 2026 at 5:02 AM Mikhail Gribkov <[email protected]>
> wrote:
> >
> > Hi hackers,
> >
> > I've noticed an odd check in test_aio.c:
> > if (zero_on_error | zero_damaged_pages)
> >     srb_flags |= READ_BUFFERS_ZERO_ON_ERROR;
> >
> > Both zero_on_error and  zero_damaged_pages declared as bool. Shouldn't
> there be a logical "||" inside the if-condition, not a bitwise "|"?
> > Yes, it works now, but fixing it would be cleaner.
> >
> > Proposed patch is attached (although it's quite trivial).
>
> AI found another one in FuncnameGetCandidates() in namespace.c:
>
> Assert(nargs >= 0 || !(expand_variadic | expand_defaults));
>
> I think they belong to the same category and could be addressed together.
>
> --
> Regards,
> Xuneng Zhou
> HighGo Software Co., Ltd.
>

Attachment: 001_Fix_bitwise_operation_on_bools_v2.patch
Description: Binary data

Reply via email to