From aa0d2078b7b205595ff5821bfdbb6c100f570bc7 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 20 Dec 2018 09:34:42 +1100 Subject: [PATCH] psram: Use 8-bit type for _ext_ram_bss_start/_ext_ram_bss_end Fixes pointer arithmetic when printing size of remaining heap --- components/esp32/spiram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp32/spiram.c b/components/esp32/spiram.c index 11a775b82..dbb279d21 100644 --- a/components/esp32/spiram.c +++ b/components/esp32/spiram.c @@ -61,7 +61,7 @@ static const char* TAG = "spiram"; #endif #if CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY -extern int _ext_ram_bss_start, _ext_ram_bss_end; +extern uint8_t _ext_ram_bss_start, _ext_ram_bss_end; #endif static bool spiram_inited=false;