forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user