From eb7dfdb6ad6040a83908401b61f6268e56d35555 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 28 Apr 2021 14:17:15 +0200 Subject: [PATCH] drivers/periph: flashpage: fix type error --- drivers/periph_common/flashpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/periph_common/flashpage.c b/drivers/periph_common/flashpage.c index 4db62f8c21..cb8e8b1967 100644 --- a/drivers/periph_common/flashpage.c +++ b/drivers/periph_common/flashpage.c @@ -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); }