diff options
| author | Ray <[email protected]> | 2021-03-21 18:32:05 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-21 18:32:05 +0100 |
| commit | 2f943aaff09de326ed71e498fa67b364e3210a53 (patch) | |
| tree | 161b15e11ce8588b1de76701ddd3ed069cf39db4 /src | |
| parent | ed4ca6a7f386ef6bb86a6016d9e15ecb12ed287f (diff) | |
| download | raylib-2f943aaff09de326ed71e498fa67b364e3210a53.tar.gz raylib-2f943aaff09de326ed71e498fa67b364e3210a53.zip | |
Reverting align change #1658
Diffstat (limited to 'src')
| -rw-r--r-- | src/external/jar_xm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/external/jar_xm.h b/src/external/jar_xm.h index b1fd476c..bfd63ec0 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) - 7)) & ~((b) - 7)) -#define ALIGN_PTR(x, b) (void*)(((uintptr_t)(x) + ((b) - 7)) & ~((b) - 7)) +#define ALIGN(x, b) (((x) + ((b) - 1)) & ~((b) - 1)) +#define ALIGN_PTR(x, b) (void*)(((uintptr_t)(x) + ((b) - 1)) & ~((b) - 1)) 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; |
