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.


Reply via email to