Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DECREF lhs in slice assignment w/ dtype object

  • Loading branch information...
commit c4e72cf4161d1b822234482141a8324e2452751e 1 parent c7db788
@markflorisson authored
Showing with 2 additions and 5 deletions.
  1. +1 −4 Cython/Compiler/Vector.py
  2. +1 −1  Cython/minivect
View
5 Cython/Compiler/Vector.py
@@ -532,10 +532,7 @@ def final_assignment(self):
rhs_var = b.variable(typemapper.map_type(self.rhs_type, wrap=True), 'rhs')
if self.lhs.type.dtype.is_pyobject:
- temp = b.temp(rhs_var.type.dtype)
- body = b.stats(b.assign(temp, rhs_var),
- b.expr_stat(b.incref(temp)),
- b.assign(lhs_var, temp))
+ body = b.assign(b.decref(lhs_var), b.incref(rhs_var))
else:
body = b.assign(lhs_var, rhs_var)
2  Cython/minivect
@@ -1 +1 @@
-Subproject commit bfa17e569aabb078bf42f078bd9f6534664d3c3b
+Subproject commit 313565b356f8253b2633903502936c0b13c8510e
Please sign in to comment.
Something went wrong with that request. Please try again.