mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-08 10:56:28 +00:00
Fixed possible issue with memory alignment #1658
This commit is contained in:
4
src/external/jar_xm.h
vendored
4
src/external/jar_xm.h
vendored
@@ -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);
|
return jar_xm_create_context_safe(ctxp, moddata, SIZE_MAX, rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ALIGN(x, b) (((x) + ((b) - 1)) & ~((b) - 1))
|
#define ALIGN(x, b) (((x) + ((b) - 7)) & ~((b) - 7))
|
||||||
#define ALIGN_PTR(x, b) (void*)(((uintptr_t)(x) + ((b) - 1)) & ~((b) - 1))
|
#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) {
|
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
|
#if JAR_XM_DEFENSIVE
|
||||||
int ret;
|
int ret;
|
||||||
|
Reference in New Issue
Block a user