diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-10-15 22:20:26 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-10-15 22:20:26 -0700 |
commit | 298390c02402c29070efbbde673dbe21795b0391 (patch) | |
tree | 134ddbf16d4da68a3d82b3b024b974f247226f6a | |
parent | cfd340199bc1e676a21acd63ac8347107fc6601d (diff) |
[vector] More of the same
-rw-r--r-- | src/hb-vector.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 38d08cb7..9c2f7249 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -184,9 +184,9 @@ struct hb_vector_t ::qsort (arrayZ(), len, sizeof (Type), cmp); } - inline void qsort (unsigned int start, unsigned int end) + inline void qsort (unsigned int start, unsigned int end, int (*cmp)(const void*, const void*) = Type::cmp) { - ::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp); + ::qsort (arrayZ() + start, end - start, sizeof (Type), cmp); } template <typename T> |