]> granicus.if.org Git - esp-idf/commitdiff
psram: Use 8-bit type for _ext_ram_bss_start/_ext_ram_bss_end
authorAngus Gratton <angus@espressif.com>
Wed, 19 Dec 2018 22:34:42 +0000 (09:34 +1100)
committerbot <bot@espressif.com>
Thu, 20 Dec 2018 01:40:05 +0000 (01:40 +0000)
Fixes pointer arithmetic when printing size of remaining heap

components/esp32/spiram.c

index ecd95dcdb13f5999b5c47d137f9ad6e0e9665676..e2dcfd4cc56eafd04c13df318c9455fa29d19b70 100644 (file)
@@ -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;