summaryrefslogtreecommitdiffhomepage
path: root/src/external
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-20 21:02:20 +0100
committerRay <[email protected]>2021-03-20 21:02:20 +0100
commitf4f6f665f74589a8d41d0a98df336b15c09438d1 (patch)
treeed8f92fbb41ed1d006321d1cd06405c5aada67fb /src/external
parentdcde99bbb8a859009ad4cd26001a9d5c2ca42ec3 (diff)
downloadraylib-f4f6f665f74589a8d41d0a98df336b15c09438d1.tar.gz
raylib-f4f6f665f74589a8d41d0a98df336b15c09438d1.zip
Fixed possible issue with memory alignment #1658
Diffstat (limited to 'src/external')
-rw-r--r--src/external/jar_xm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/external/jar_xm.h b/src/external/jar_xm.h
index bfd63ec0..b1fd476c 100644
--- a/src/external/jar_xm.h
+++ b/src/external/jar_xm.h
@@ -617,8 +617,8 @@ int jar_xm_create_context(jar_xm_context_t** ctxp, const char* moddata, uint32_t
return jar_xm_create_context_safe(ctxp, moddata, SIZE_MAX, rate);
}
-#define ALIGN(x, b) (((x) + ((b) - 1)) & ~((b) - 1))
-#define ALIGN_PTR(x, b) (void*)(((uintptr_t)(x) + ((b) - 1)) & ~((b) - 1))
+#define ALIGN(x, b) (((x) + ((b) - 7)) & ~((b) - 7))
+#define ALIGN_PTR(x, b) (void*)(((uintptr_t)(x) + ((b) - 7)) & ~((b) - 7))
int jar_xm_create_context_safe(jar_xm_context_t** ctxp, const char* moddata, size_t moddata_length, uint32_t rate) {
#if JAR_XM_DEFENSIVE
int ret;