From: Chris Hanson Date: Sat, 4 Aug 2001 02:46:14 +0000 (+0000) Subject: Fix bugs in unbind_variable. X-Git-Tag: 20090517-FFI~2615 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=4e18e22bd54fda4098552fec1a57d65bcce8239c;p=mit-scheme.git Fix bugs in unbind_variable. --- diff --git a/v7/src/microcode/lookup.c b/v7/src/microcode/lookup.c index 7c8f163b0..e5b208be0 100644 --- a/v7/src/microcode/lookup.c +++ b/v7/src/microcode/lookup.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: lookup.c,v 9.62 2001/08/02 04:32:14 cph Exp $ +$Id: lookup.c,v 9.63 2001/08/04 02:46:14 cph Exp $ Copyright (c) 1988-2001 Massachusetts Institute of Technology @@ -578,11 +578,12 @@ unbind_extension_variable (SCHEME_OBJECT frame, SCHEME_OBJECT symbol) unsigned long index = 0; while (index < length) { - if ((start[index]) == symbol) + if ((PAIR_CAR (start[index])) == symbol) { if (index < (length - 1)) (start[index]) = (start [length - 1]); SET_EXTENDED_FRAME_LENGTH (frame, (length - 1)); + (start [length - 1]) = SHARP_F; return (1); } index += 1;