aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccrun.c b/tccrun.c
index f348e48..2519105 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -235,7 +235,7 @@ static void set_pages_executable(void *ptr, unsigned long length)
end = (addr_t)ptr + length;
end = (end + PAGESIZE - 1) & ~(PAGESIZE - 1);
mprotect((void *)start, end - start, PROT_READ | PROT_WRITE | PROT_EXEC);
- __clear_cache(ptr, ptr + length);
+ __clear_cache(ptr, (char *)ptr + length);
#endif
}