SIGN IN SIGN UP

gh-111178: Avoid calling functions from incompatible pointer types in listobject.c (GH-112820)

Fix undefined behavior warnings (UBSan  -fsanitize=function), for example:

Objects/object.c:674:11: runtime error: call to function list_repr through pointer to incorrect function type 'struct _object *(*)(struct _object *)'
listobject.c:382: note: list_repr defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Objects/object.c:674:11 in
C
Christopher Chavez committed
5d36a95e64e30606e8f8e332edf6bde91ac344cf
Parent: 9ed36d5
Committed by GitHub <noreply@github.com> on 1/2/2024, 1:41:32 PM