1.1 --- a/src/compare.c Sun Apr 09 19:03:58 2023 +0200 1.2 +++ b/src/compare.c Sun Apr 09 19:06:16 2023 +0200 1.3 @@ -31,8 +31,8 @@ 1.4 #include <math.h> 1.5 1.6 int cx_cmp_int(void const *i1, void const *i2) { 1.7 - int a = *((const int*) i1); 1.8 - int b = *((const int*) i2); 1.9 + int a = *((const int *) i1); 1.10 + int b = *((const int *) i2); 1.11 if (a == b) { 1.12 return 0; 1.13 } else { 1.14 @@ -41,8 +41,8 @@ 1.15 } 1.16 1.17 int cx_cmp_longint(void const *i1, void const *i2) { 1.18 - long int a = *((const long int*) i1); 1.19 - long int b = *((const long int*) i2); 1.20 + long int a = *((const long int *) i1); 1.21 + long int b = *((const long int *) i2); 1.22 if (a == b) { 1.23 return 0; 1.24 } else { 1.25 @@ -51,8 +51,8 @@ 1.26 } 1.27 1.28 int cx_cmp_longlong(void const *i1, void const *i2) { 1.29 - long long a = *((const long long*) i1); 1.30 - long long b = *((const long long*) i2); 1.31 + long long a = *((const long long *) i1); 1.32 + long long b = *((const long long *) i2); 1.33 if (a == b) { 1.34 return 0; 1.35 } else { 1.36 @@ -61,8 +61,8 @@ 1.37 } 1.38 1.39 int cx_cmp_int16(void const *i1, void const *i2) { 1.40 - int16_t a = *((const int16_t*) i1); 1.41 - int16_t b = *((const int16_t*) i2); 1.42 + int16_t a = *((const int16_t *) i1); 1.43 + int16_t b = *((const int16_t *) i2); 1.44 if (a == b) { 1.45 return 0; 1.46 } else { 1.47 @@ -71,8 +71,8 @@ 1.48 } 1.49 1.50 int cx_cmp_int32(void const *i1, void const *i2) { 1.51 - int32_t a = *((const int32_t*) i1); 1.52 - int32_t b = *((const int32_t*) i2); 1.53 + int32_t a = *((const int32_t *) i1); 1.54 + int32_t b = *((const int32_t *) i2); 1.55 if (a == b) { 1.56 return 0; 1.57 } else { 1.58 @@ -81,8 +81,8 @@ 1.59 } 1.60 1.61 int cx_cmp_int64(void const *i1, void const *i2) { 1.62 - int64_t a = *((const int64_t*) i1); 1.63 - int64_t b = *((const int64_t*) i2); 1.64 + int64_t a = *((const int64_t *) i1); 1.65 + int64_t b = *((const int64_t *) i2); 1.66 if (a == b) { 1.67 return 0; 1.68 } else { 1.69 @@ -91,8 +91,8 @@ 1.70 } 1.71 1.72 int cx_cmp_uint(void const *i1, void const *i2) { 1.73 - unsigned int a = *((const unsigned int*) i1); 1.74 - unsigned int b = *((const unsigned int*) i2); 1.75 + unsigned int a = *((const unsigned int *) i1); 1.76 + unsigned int b = *((const unsigned int *) i2); 1.77 if (a == b) { 1.78 return 0; 1.79 } else { 1.80 @@ -101,8 +101,8 @@ 1.81 } 1.82 1.83 int cx_cmp_ulongint(void const *i1, void const *i2) { 1.84 - unsigned long int a = *((const unsigned long int*) i1); 1.85 - unsigned long int b = *((const unsigned long int*) i2); 1.86 + unsigned long int a = *((const unsigned long int *) i1); 1.87 + unsigned long int b = *((const unsigned long int *) i2); 1.88 if (a == b) { 1.89 return 0; 1.90 } else { 1.91 @@ -111,8 +111,8 @@ 1.92 } 1.93 1.94 int cx_cmp_ulonglong(void const *i1, void const *i2) { 1.95 - unsigned long long a = *((const unsigned long long*) i1); 1.96 - unsigned long long b = *((const unsigned long long*) i2); 1.97 + unsigned long long a = *((const unsigned long long *) i1); 1.98 + unsigned long long b = *((const unsigned long long *) i2); 1.99 if (a == b) { 1.100 return 0; 1.101 } else { 1.102 @@ -121,8 +121,8 @@ 1.103 } 1.104 1.105 int cx_cmp_uint16(void const *i1, void const *i2) { 1.106 - uint16_t a = *((const uint16_t*) i1); 1.107 - uint16_t b = *((const uint16_t*) i2); 1.108 + uint16_t a = *((const uint16_t *) i1); 1.109 + uint16_t b = *((const uint16_t *) i2); 1.110 if (a == b) { 1.111 return 0; 1.112 } else { 1.113 @@ -131,8 +131,8 @@ 1.114 } 1.115 1.116 int cx_cmp_uint32(void const *i1, void const *i2) { 1.117 - uint32_t a = *((const uint32_t*) i1); 1.118 - uint32_t b = *((const uint32_t*) i2); 1.119 + uint32_t a = *((const uint32_t *) i1); 1.120 + uint32_t b = *((const uint32_t *) i2); 1.121 if (a == b) { 1.122 return 0; 1.123 } else { 1.124 @@ -141,8 +141,8 @@ 1.125 } 1.126 1.127 int cx_cmp_uint64(void const *i1, void const *i2) { 1.128 - uint64_t a = *((const uint64_t*) i1); 1.129 - uint64_t b = *((const uint64_t*) i2); 1.130 + uint64_t a = *((const uint64_t *) i1); 1.131 + uint64_t b = *((const uint64_t *) i2); 1.132 if (a == b) { 1.133 return 0; 1.134 } else { 1.135 @@ -151,8 +151,8 @@ 1.136 } 1.137 1.138 int cx_cmp_float(void const *f1, void const *f2) { 1.139 - float a = *((const float*) f1); 1.140 - float b = *((const float*) f2); 1.141 + float a = *((const float *) f1); 1.142 + float b = *((const float *) f2); 1.143 if (fabsf(a - b) < 1e-6f) { 1.144 return 0; 1.145 } else {