Branch: Tag:

2018-05-22

2018-05-22 09:20:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build [Stdio.Buffer]: Fixed a few warnings.

255:    * as much.    *    */ -  if( UNLIKELY(force && io->offset -  || io_len(io) && io->offset > io->allocated / 2) ) +  if( UNLIKELY((force && io->offset) || +  (io_len(io) && io->offset > io->allocated / 2)) )    {    /* more than 50% of the buffer is available before the read pointer,    * and we can discard that data. Move the data to the beginning, making
650:    len--;    res = io_read_byte_uc(io);    if( res & 0x80 ) -  res = (-1<<8)|res; +  res |= ~(INT_TYPE)0xff;    for( i=0; i<len; i++ )    {    res <<= 8;
1790:    do    if ( LIKELY(io_len(THIS)) )    { -  const char * start = io_read_pointer(io); -  const char * end = memchr(start, 0, io_len(io)); +  const unsigned char * start = io_read_pointer(io); +  const unsigned char * end = memchr(start, 0, io_len(io));    if ( LIKELY(end) )    {    push_string(io_read_string(io, end - start));