pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:9974:    * Flags:    * 1 SOFT_WEAKER Weaker type.    */   struct pike_type *soft_cast(struct pike_type *soft_type,    struct pike_type *orig_type,    int flags)   {   #if 1    if (flags & SOFT_WEAKER) {    return type_binop(PT_BINOP_AND, orig_type, soft_type, -  PT_FLAG_CMP_NULLABLE, PT_FLAG_CMP_NULLABLE, 0); +  PT_FLAG_CMP_NULLABLE, 0, 0);    } else {    return type_binop(PT_BINOP_AND, orig_type, soft_type, 0, 0, 0);    }   #else    struct pike_type *res = NULL;    struct pike_type *tmp = NULL;    struct pike_type *tmp2 = NULL;    struct pike_type *tmp3 = NULL;       if (soft_type == orig_type) {