pike.git / src / modules / _Stdio / buffer.cmod

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1863:    *!    *! @seealso    *! @[read()]    */    PIKEFUN string(0..255) try_read( int bytes )    {    IOBuffer *this = THIS;    struct pike_string *s;    Pike_sp--;    /* Hm. signed/unsigned comparisons abound. */ -  if( bytes > 0 && bytes > io_len(this) ) +  if( bytes > 0 && (size_t)bytes > io_len(this) )    bytes = io_len(this);    push_string( io_read_string(this, bytes ) );    }       /*! @decl int(8bit) read_int8()    */    PIKEFUN int(8bit) read_int8( )    {    IOBuffer *io = THIS;    if( LIKELY(io_avail( io, 1 )) )