mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
sim: constify various integer readers
These functions only read from memory, so mark the pointer as const.
This commit is contained in:
@ -690,7 +690,7 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
cr16_extract_unsigned_integer (unsigned char *addr, int len)
|
||||
cr16_extract_unsigned_integer (const unsigned char *addr, int len)
|
||||
{
|
||||
uint32_t retval;
|
||||
unsigned char * p;
|
||||
|
Reference in New Issue
Block a user