Skip to content

Commit a7ae04a

Browse files
albanDsoumith
authored andcommitted
fix precedence problem when building with debug python (pytorch#1201)
1 parent 7f03182 commit a7ae04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/autograd/python_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ int setObject(PyObject* obj, PyObject* value, void* _unused) {
729729
if (value == Py_None) {
730730
value = nullptr;
731731
}
732-
Py_XDECREF(self->*ptr);
732+
Py_XDECREF((self->*ptr));
733733
Py_XINCREF(value);
734734
self->*ptr = value;
735735
return 0;

0 commit comments

Comments
 (0)