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 } |