mirror of
https://github.com/postgres/postgres.git
synced 2026-05-27 20:27:28 -04:00
Avoid casting void * function arguments
Like commit c3c240537f, but for newly added code.
This commit is contained in:
parent
4f0cbc6fb5
commit
71123a5454
1 changed files with 2 additions and 2 deletions
|
|
@ -262,8 +262,8 @@ trigram_qsort(trgm *array, size_t n)
|
|||
static inline int
|
||||
CMPTRGM_EQ(const void *a, const void *b)
|
||||
{
|
||||
char *aa = (char *) a;
|
||||
char *bb = (char *) b;
|
||||
const char *aa = a;
|
||||
const char *bb = b;
|
||||
|
||||
return aa[0] != bb[0] || aa[1] != bb[1] || aa[2] != bb[2] ? 1 : 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue