diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-04-03 21:30:15 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-04-03 21:30:15 -0400 |
commit | 5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch) | |
tree | 2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/list.c | |
parent | 7bc2770af08e317b2076540050c68d2de55a11db (diff) | |
download | dimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz |
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'libdimension/list.c')
-rw-r--r-- | libdimension/list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/list.c b/libdimension/list.c index 8fbbdd7..0574744 100644 --- a/libdimension/list.c +++ b/libdimension/list.c @@ -110,7 +110,7 @@ dmnsn_list_sort(dmnsn_list *list, dmnsn_list_comparator_fn *comparator) do { dmnsn_list_iterator *prev = i ? dmnsn_list_prev(i) : dmnsn_list_last(list); - if (!(*comparator)(current, prev)) + if (!comparator(current, prev)) break; i = prev; } while (i != dmnsn_list_first(list)); @@ -138,7 +138,7 @@ dmnsn_list_sort(dmnsn_list *list, dmnsn_list_comparator_fn *comparator) break; } else if (!j) { break; - } else if ((*comparator)(j, i)) { + } else if (comparator(j, i)) { dmnsn_list_iterator *temp = dmnsn_list_next(j); dmnsn_list_iterator_remove(&half, j); dmnsn_list_iterator_insert(list, i, j); |