fix define-syntaxes to not assume that the variable bucket has flags

svn: r2472
This commit is contained in:
Matthew Flatt 2006-03-21 00:18:54 +00:00
parent 0158970c1a
commit 8c3234f112

View File

@ -593,7 +593,8 @@ void scheme_set_global_bucket(char *who, Scheme_Bucket *b, Scheme_Object *val,
int set_undef)
{
if ((b->val || set_undef)
&& !(((Scheme_Bucket_With_Flags *)b)->flags & GLOB_IS_IMMUTATED))
&& ((b->so.type != scheme_variable_type)
|| !(((Scheme_Bucket_With_Flags *)b)->flags & GLOB_IS_IMMUTATED)))
b->val = val;
else {
if (((Scheme_Bucket_With_Home *)b)->home->module) {