From fc63968f90e3fab12e63d973a4ee7f16d80d765f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 24 Dec 2017 14:29:09 -0800 Subject: [PATCH] altos/scheme: Pull out per-frame vals while printing list of frames Was using the same vals for all frames, which just doesn't work well. Signed-off-by: Keith Packard --- src/scheme/ao_scheme_frame.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scheme/ao_scheme_frame.c b/src/scheme/ao_scheme_frame.c index 16da62fb..9ae5bb72 100644 --- a/src/scheme/ao_scheme_frame.c +++ b/src/scheme/ao_scheme_frame.c @@ -153,12 +153,13 @@ ao_scheme_frame_write(ao_poly p, bool write) { struct ao_scheme_frame *frame = ao_scheme_poly_frame(p); struct ao_scheme_frame *clear = frame; - struct ao_scheme_frame_vals *vals = ao_scheme_poly_frame_vals(frame->vals); int f; int written = 0; ao_scheme_print_start(); while (frame) { + struct ao_scheme_frame_vals *vals = ao_scheme_poly_frame_vals(frame->vals); + if (written != 0) printf(", "); if (ao_scheme_print_mark_addr(frame)) { -- 2.30.2