1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/periph: flashpage: fix type error

This commit is contained in:
Benjamin Valentin 2021-04-28 14:17:15 +02:00
parent c5e0597c15
commit eb7dfdb6ad

View File

@ -120,7 +120,7 @@ unsigned flashpage_page(void *addr)
{
unsigned page = 0;
for (uintptr_t pos = CPU_FLASH_BASE; addr >= pos; ++page) {
for (uintptr_t pos = CPU_FLASH_BASE; (uintptr_t)addr >= pos; ++page) {
pos += flashpage_size(page);
}