pike.git/
src/
mapping.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:23:57 by Arne Goedeke <el@laramies.com>
c69ce79b6aeb9e53eb7f221cea473b8195989254 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
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; }