]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/eval.c (unbind_for_thread_switch): Fix iteration over the
authorBarry O'Reilly <gundaetiapo@gmail.com>
Sat, 19 Oct 2013 18:42:38 +0000 (14:42 -0400)
committerBarry O'Reilly <gundaetiapo@gmail.com>
Sat, 19 Oct 2013 18:42:38 +0000 (14:42 -0400)
specpdl stack.

src/ChangeLog
src/eval.c

index 705b9c771df58483cf7982c1c0ff9144dc2a0cfb..b6ecd5f60ba8e72062fa0d802e233fa6c3d6ef73 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-19  Barry O'Reilly <gundaetiapo@gmail.com>
+
+       * eval.c (unbind_for_thread_switch): Fix iteration over the
+       specpdl stack.
+
 2013-09-01  Eli Zaretskii  <eliz@gnu.org>
 
        * eval.c (unbind_for_thread_switch): Accept a 'struct
index b8a61590387551767169592127ee0d04140654ec..fc16c15e626c456b8901b0101e724ae9bdd019fb 100644 (file)
@@ -3488,9 +3488,9 @@ unbind_for_thread_switch (struct thread_state *thr)
 {
   union specbinding *bind;
 
-  for (bind = thr->m_specpdl_ptr; bind != thr->m_specpdl; --bind)
+  for (bind = thr->m_specpdl_ptr; bind > thr->m_specpdl;)
     {
-      if (bind->kind >= SPECPDL_LET)
+      if ((--bind)->kind >= SPECPDL_LET)
        {
          bind->let.saved_value = find_symbol_value (specpdl_symbol (bind));
          do_one_unbind (bind, 0);