pike.git / src / modules / _Stdio / sendfile.c

version» Context lines:

pike.git/src/modules/_Stdio/sendfile.c:955:    sf.from = NULL;    SET_SVAL(sp[1-args], T_INT, NUMBER_NUMBER, integer, 0);    }       if (sf.from_file) {    if (sf.from_file->prog == file_program) {    sf.from = (struct my_file *)(sf.from_file->storage);    } else if (!(sf.from = get_storage(sf.from_file, file_program))) {    struct svalue *sval;    if (!(sval = get_storage(sf.from_file, file_ref_program)) || -  !(TYPEOF(*sval) != T_OBJECT) || +  (TYPEOF(*sval) != T_OBJECT) ||    !(sf.from = get_storage(sval->u.object, file_program))) {    SIMPLE_BAD_ARG_ERROR("sendfile", 2, "object(Stdio.File)");    }    add_ref(sval->u.object);   #ifdef PIKE_DEBUG    if ((TYPEOF(sp[1-args]) != T_OBJECT) ||    (sp[1-args].u.object != sf.from_file)) {    Pike_fatal("sendfile: Stack out of sync(2).\n");    }   #endif /* PIKE_DEBUG */