Branch: Tag:

2013-08-03

2013-08-03 12:10:22 by Arne Goedeke <el@laramies.com>

mapping: non ref counted types should not be affected by the weak flag

340:    default:    Pike_fatal("Instable mapping data flags.\n");    case MAPPING_WEAK_INDICES: -  if (REFCOUNTED_TYPE(TYPEOF(from->ind)) && +  if (!REFCOUNTED_TYPE(TYPEOF(from->ind)) ||    (*from->ind.u.refs > 1)) {    goto keep_keypair;    }    break;    case MAPPING_WEAK_VALUES: -  if (REFCOUNTED_TYPE(TYPEOF(from->val)) && +  if (!REFCOUNTED_TYPE(TYPEOF(from->val)) ||    (*from->val.u.refs > 1)) {    goto keep_keypair;    }