Branch: Tag:

2016-05-09

2016-05-09 16:28:36 by Martin Nilsson <nilsson@fastmail.com>

LONGEST is just INT64, so use that instead.

582:       static INT_TYPE io_read_number_uc( Buffer *io, size_t len )    { -  LONGEST res = 0; +  INT_TYPE res = 0;    while( LIKELY(len--) ) {    res <<= 8;    res |= io_read_byte_uc(io);
603:    return res;    }    -  static LONGEST io_read_number( Buffer *io, size_t len ) +  static INT64 io_read_number( Buffer *io, size_t len )    { -  LONGEST res; +  INT64 res;    if( !io_avail(io, len) )    return -1;    /* ensure only leading 0:s */
625:    struct object *o;    MP_INT *i;    unsigned char *p; -  LONGEST res; +        if( !io_avail(io,len) ) return NULL;    o = fast_clone_object(bignum_program);
1686:    */    PIKEFUN string(0..255) read_hstring( int bytes, void|int offset )    { -  LONGEST len; +  INT64 len;    Buffer *io = THIS;    struct pike_string *s;    ONERROR e;
1731:    */    PIKEFUN string(0..255) read_cstring(void|int sentinel)    { -  LONGEST len; +  INT64 len;    Buffer *io = THIS;    struct pike_string *s;    ONERROR e;
1788:    */    PIKEFUN Buffer read_hbuffer( int bytes, int|void copy )    { -  LONGEST len; +  INT64 len;    int do_copy = 0;    Buffer *io = THIS;    ONERROR e;