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:
parent
c5e0597c15
commit
eb7dfdb6ad
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user