pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:115:   void mapping_free_keypair(struct mapping_data *md, struct keypair *k)   {    FREE_KEYPAIR(md, k);   }      static INLINE int check_type_contains(TYPE_FIELD types, const struct svalue * s) {    return (TYPEOF(*s) == PIKE_T_OBJECT || types & (BIT_OBJECT|(1 << TYPEOF(*s))));   }      static INLINE int check_type_overlaps(TYPE_FIELD t1, TYPE_FIELD t2) { -  return t1 & t2 || (t1|t2) & BIT_OBJECT; +  return (!t1 && !t2) || t1 & t2 || (t1|t2) & BIT_OBJECT;   }      #ifdef PIKE_DEBUG      /** This function checks that the type field isn't lacking any bits.    * It is used for debugging purposes only.    */   static void check_mapping_type_fields(const struct mapping *m)   {    INT32 e;