src/compare.c

changeset 762
4523f6d42512
parent 678
78f943d76f50
child 890
54565fd74e74
equal deleted inserted replaced
761:61d5197d612b 762:4523f6d42512
197 } else { 197 } else {
198 return p1 < p2 ? -1 : 1; 198 return p1 < p2 ? -1 : 1;
199 } 199 }
200 } 200 }
201 201
202 int cx_cmp_ptr(
203 void const *ptr1,
204 void const *ptr2
205 ) {
206 uintptr_t p1 = (uintptr_t) ptr1;
207 uintptr_t p2 = (uintptr_t) ptr2;
208 if (p1 == p2) {
209 return 0;
210 } else {
211 return p1 < p2 ? -1 : 1;
212 }
213 }

mercurial