fix struct type property propagation when the parent type has > 5 properties
svn: r12970
This commit is contained in:
parent
9564e24388
commit
9e42e5c876
|
@ -2951,7 +2951,7 @@ static Scheme_Object *_make_struct_type(Scheme_Object *basesym, const char *base
|
|||
} else {
|
||||
/* Duplicate the hash table: */
|
||||
Scheme_Hash_Table *oht = (Scheme_Hash_Table *)struct_type->props;
|
||||
for (i = oht->count; i--; ) {
|
||||
for (i = oht->size; i--; ) {
|
||||
if (oht->vals[i]) {
|
||||
prop = oht->keys[i];
|
||||
scheme_hash_set(ht, prop, oht->vals[i]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user