diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -159,7 +159,11 @@ struct Impl_Ticker { | |||
159 | 159 | ||
160 | static int cmp_Ticker_(const void *a, const void *b) { | 160 | static int cmp_Ticker_(const void *a, const void *b) { |
161 | const iTicker *elems[2] = { a, b }; | 161 | const iTicker *elems[2] = { a, b }; |
162 | return iCmp(elems[0]->context, elems[1]->context); | 162 | const int cmp = iCmp(elems[0]->context, elems[1]->context); |
163 | if (cmp) { | ||
164 | return cmp; | ||
165 | } | ||
166 | return iCmp((void *) elems[0]->callback, (void *) elems[1]->callback); | ||
163 | } | 167 | } |
164 | 168 | ||
165 | /*----------------------------------------------------------------------------------------------*/ | 169 | /*----------------------------------------------------------------------------------------------*/ |