Branch: Tag:

2014-12-04

2014-12-04 19:23:57 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;    }