Skip to content

Commit f872f00

Browse files
committed
Don't skip 0 value
1 parent 287bdf8 commit f872f00

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/pyscipopt/expr.pxi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,9 +1023,7 @@ cdef dict _to_dict(Expr expr, Expr other, bool copy = True):
10231023
cdef object k_obj
10241024

10251025
while PyDict_Next(other.terms, &pos, &k_ptr, &v_ptr):
1026-
if (other_v := <double>(<object>v_ptr)) == 0:
1027-
continue
1028-
1026+
other_v = <double>(<object>v_ptr)
10291027
k_obj = <object>k_ptr
10301028
old_v_ptr = PyDict_GetItem(children, k_obj)
10311029
if old_v_ptr != NULL:

0 commit comments

Comments
 (0)