SIGN IN SIGN UP

gh-131740: minor readability fix in PyUnstable_GC_VisitObjects (gh-131786)

Minor readability fix in PyUnstable_GC_VisitObjects

Replaces `if (visit_generation())` with `if (visit_generation() < 0)`,
since we are checking for the failure case, and it's confusing to have
that be implicitly `true`.

Also fixes a misspelt variable name.
M
Martin DeMello committed
9c1e85fd64cf6a85f7c96390d7b2dfad03a76944
Parent: 2984ff9
Committed by GitHub <noreply@github.com> on 3/28/2025, 11:58:17 PM