Commit c0d42853 authored by Noah Friedman's avatar Noah Friedman

(ybuffer-list): $alist must be ptr-unmasked at the end of the loop,

because $ptr is modified by ygetptr and we use $ptr immediately at the
beginning.
parent 784602b1
...@@ -105,8 +105,6 @@ define ybuffer-list ...@@ -105,8 +105,6 @@ define ybuffer-list
while $alist != $qnil while $alist != $qnil
set $this = ((struct Lisp_Cons *) $ptr)->car set $this = ((struct Lisp_Cons *) $ptr)->car
set $alist = ((struct Lisp_Cons *) $ptr)->u.cdr set $alist = ((struct Lisp_Cons *) $ptr)->u.cdr
ygetptr $alist
set $alist = $ptr
# Vbuffer_alist elts are pairs of the form (name . buffer) # Vbuffer_alist elts are pairs of the form (name . buffer)
ygetptr $this ygetptr $this
...@@ -136,6 +134,8 @@ define ybuffer-list ...@@ -136,6 +134,8 @@ define ybuffer-list
end end
set $i++ set $i++
ygetptr $alist
set $alist = $ptr
end end
end end
document ybuffer-list document ybuffer-list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment