From 4e18e22bd54fda4098552fec1a57d65bcce8239c Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 4 Aug 2001 02:46:14 +0000 Subject: [PATCH] Fix bugs in unbind_variable. --- v7/src/microcode/lookup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.25.1