mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
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:
parent
7b2298cbd8
commit
df32b446c3
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user