mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
fix clang build: check alignment the other way
This commit is contained in:
parent
af0b26f9b7
commit
0711a53a33
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ qsort_t my_qsort(void *base_ptr, size_t count, size_t size, qsort_cmp cmp)
|
|||
stack[0].low=stack[0].high=0;
|
||||
#endif
|
||||
pivot = (char *) my_alloca((int) size);
|
||||
ptr_cmp= size == sizeof(char*) && !((low - (char*) 0)& (sizeof(char*)-1));
|
||||
ptr_cmp= size == sizeof(char*) && (intptr_t)low % sizeof(char*) == 0;
|
||||
|
||||
/* The following loop sorts elements between high and low */
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue