Skip to content

Commit a5f76ed

Browse files
author
Oleg Ivanov
committed
Fixed Windows compatibility
1 parent 1c6b18f commit a5f76ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

contrib/aqo/utils.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ double_cmp(const void *a, const void *b)
4141
return 0;
4242
}
4343

44+
/*
45+
* Compares elements for two given indexes
46+
*/
4447
int
4548
argsort_cmp(const void *a, const void *b)
4649
{
47-
return (*argsort_value_cmp) ((uint8_t *) argsort_a +
50+
return (*argsort_value_cmp) ((char *) argsort_a +
4851
*((int *) a) * argsort_es,
49-
(uint8_t *) argsort_a +
52+
(char *) argsort_a +
5053
*((int *) b) * argsort_es);
5154
}
5255

0 commit comments

Comments
 (0)