pike.git / src / post_modules / Shuffler / a_source_system_memory.c

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_system_memory.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: a_source_system_memory.c,v 1.10 2003/12/13 22:54:29 nilsson Exp $ + || $Id: a_source_system_memory.c,v 1.11 2005/05/18 12:36:54 mast Exp $   */      #include "global.h"   #include "bignum.h"   #include "object.h"   #include "interpret.h"      #include <shuffler.h>      
pike.git/src/post_modules/Shuffler/a_source_system_memory.c:94:    return 0;    }       res->s.free_source = free_source;    res->s.get_data = get_data;    res->obj = s->u.object;    add_ref(res->obj);    res->offset = start;       if( len != -1 ) -  if( len > res->mem->len-start ) +  if( len > (ptrdiff_t) res->mem->len - start )    {    sub_ref(res->obj);    free(res);    return 0;    }    else    res->len = len;    else    res->len = len;