sim: mips: tweak buffer sign

This model uses unsigned char buffers, but this temporary pointer is
declared as signed.  Switch it to unsigned since it's just a temporary
variable to hold the new pointer.
This commit is contained in:
Mike Frysinger 2021-06-15 00:40:17 -04:00
parent 7b2298cbd8
commit df32b446c3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2021-06-16 Mike Frysinger <vapier@gentoo.org>
* dv-tx3904sio.c (tx3904sio_fifo_push): Change next_buf to
unsigned_1.
2021-06-16 Mike Frysinger <vapier@gentoo.org>
* dv-tx3904irc.c (tx3904irc_io_write_buffer): Initialize

View File

@ -582,7 +582,7 @@ tx3904sio_fifo_push(struct hw* me, struct tx3904sio_fifo* fifo, char it)
if(fifo->size == fifo->used) /* full */
{
int next_size = fifo->size * 2 + 16;
char* next_buf = zalloc(next_size);
unsigned_1* next_buf = zalloc(next_size);
memcpy(next_buf, fifo->buffer, fifo->used);
if(fifo->buffer != NULL) free(fifo->buffer);