From 374e6d244f184056d64fd02729a7badf02991e29 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 12:17:43 +0200 Subject: fix almost all compiler warnings --- src/kernel/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/mem.c') diff --git a/src/kernel/mem.c b/src/kernel/mem.c index 63f5379..7c1c640 100644 --- a/src/kernel/mem.c +++ b/src/kernel/mem.c @@ -87,8 +87,8 @@ bool virt_user_cpy( struct virt_iter dest_iter, src_iter; size_t min; - virt_iter_new(&dest_iter, dest, length, dest_pages, true, true); - virt_iter_new( &src_iter, src, length, src_pages, true, false); + virt_iter_new(&dest_iter, dest, length, dest_pages, true, true); + virt_iter_new( &src_iter, (void*)src, length, src_pages, true, false); dest_iter.frag_len = 0; src_iter.frag_len = 0; -- cgit v1.2.3