use of nullptr in python slots breaks build for py3.8 #82520

Closed
opened 2020-11-09 00:46:53 +01:00 by Drew Perttula · 4 comments

I believe 16732def37 breaks against python 3.8.

This line appears 150 times in many files:

nullptr, /tp_print/

source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_WithinImageBoundaryUP1D.cpp line 74 is one example.

It works to change nullptr to 0 (a Py_ssize_t) on those lines. I have only tested this against my system ubuntu python 3.8.

I believe https://git.blender.org/gitweb/gitweb.cgi/blender.git/commit/16732def37c5a66f3ea28dbe247b09cc6bca6677 breaks against python 3.8. This line appears 150 times in many files: > nullptr, /*tp_print*/ source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_WithinImageBoundaryUP1D.cpp line 74 is one example. It works to change nullptr to 0 (a Py_ssize_t) on those lines. I have only tested this against my system ubuntu python 3.8.
Author

Added subscriber: @drewp

Added subscriber: @drewp
Author

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

This issue was referenced by e118426e46

This issue was referenced by e118426e4695a97d67e65d69677f3c4e2db50a56

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Campbell Barton self-assigned this 2020-11-09 06:13:32 +01:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#82520
No description provided.