Author: Remi Meier
Branch: c7
Changeset: r685:2ec35b21f89e
Date: 2014-01-28 15:05 +0100
http://bitbucket.org/pypy/stmgc/changeset/2ec35b21f89e/

Log:    finally fix a missing save/restore in lst_append

diff --git a/duhton/glob.c b/duhton/glob.c
--- a/duhton/glob.c
+++ b/duhton/glob.c
@@ -425,10 +425,7 @@
     else
         _du_getargs1("container", cons, locals, &obj);
 
-    _du_save2(cons, locals);
     DuObject *container = DuContainer_New(obj);
-    _du_restore2(cons, locals);
-
     return container;
 }
 
@@ -519,7 +516,9 @@
     DuObject *lst, *newobj;
     _du_getargs2("append", cons, locals, &lst, &newobj);
 
+    _du_save1(lst);
     DuList_Append(lst, newobj);
+    _du_restore1(lst);
     return lst;
 }
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to