]> 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)
committerAngus Gratton <gus@projectgus.com>
Fri, 21 Dec 2018 08:03:12 +0000 (19:03 +1100)
Fixes pointer arithmetic when printing size of remaining heap

components/esp32/spiram.c

index 11a775b8264b9837289e1793d0593296eb447511..dbb279d2122037e469444f1e194a57da691515fc 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;