From 3aa1183d3f9032d1d17c295e3f3a1dbeab57ab66 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 30 Sep 2024 21:31:21 +1000 Subject: assert that assets are always aligned properly. --- memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'memory.c') diff --git a/memory.c b/memory.c index b5c6a70..91e4a5b 100644 --- a/memory.c +++ b/memory.c @@ -3,7 +3,7 @@ #include #include -int aligned(void* p, int a) { +int aligned(const void* p, int a) { return (uintptr_t)p % a == 0; } -- cgit v1.2.3-54-g00ecf