Skip to content

Commit

Permalink
Fix argument order in ZMEYA_ALLOC macro definition
Browse files Browse the repository at this point in the history
Correct the argument order in the ZMEYA_ALLOC macro to match the expected parameter order of the alloc_aligned_posix function
SergeyMakeev committed Jan 7, 2025
1 parent 1f1bde7 commit 7ad07ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zmeya.h
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ inline void* alloc_aligned_posix(size_t sizeInBytes, size_t alignment)
}
return ptr;
}
#define ZMEYA_ALLOC(sizeInBytes, alignment) alloc_aligned_posix(alignment, sizeInBytes)
#define ZMEYA_ALLOC(sizeInBytes, alignment) alloc_aligned_posix(sizeInBytes, alignment)
#define ZMEYA_FREE(ptr) free(ptr)
#endif
#endif

0 comments on commit 7ad07ad

Please sign in to comment.