소스 검색

Reverting align change #1658

Ray 4 년 전
부모
커밋
2f943aaff0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/external/jar_xm.h

+ 2 - 2
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;