diff options
Diffstat (limited to 'src/kernel/mem/virt.c')
-rw-r--r-- | src/kernel/mem/virt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/mem/virt.c b/src/kernel/mem/virt.c index e0d8e44..7a38a88 100644 --- a/src/kernel/mem/virt.c +++ b/src/kernel/mem/virt.c @@ -41,7 +41,8 @@ bool virt_iter_next(struct virt_iter *iter) { } } else { // "iterate" over physical memory - iter->frag = (void*) iter->_virt; + // the double cast supresses the warning about changing address spaces + iter->frag = (void*)(uintptr_t)iter->_virt; } iter->frag_len = partial; |