mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
memprot: fix type casting to avoid suspesious address arithmetic
This commit is contained in:
parent
0c549320b2
commit
afde2434e8
@ -28,7 +28,7 @@ static void *esp_memprot_iram0_get_def_split_addr(void)
|
||||
|
||||
static void *esp_memprot_dram0_get_def_split_addr(void)
|
||||
{
|
||||
return MAP_IRAM_TO_DRAM(&_iram_text_end);
|
||||
return (void *)MAP_IRAM_TO_DRAM((uint32_t)&_iram_text_end);
|
||||
}
|
||||
|
||||
static void *esp_memprot_rtcfast_get_min_split_addr(void)
|
||||
|
Loading…
Reference in New Issue
Block a user