summaryrefslogtreecommitdiffstats
path: root/bench/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-28 23:10:38 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-28 23:10:38 -0500
commit05f9fe66c0b1248f75fdc96b346e40f66c6976c7 (patch)
tree7ab8268154fd760faca6bc50defdf8d85e84fdff /bench/libdimension
parentb3e10e1f5b8b0f2dea64debe41b96872beee8e97 (diff)
downloaddimension-05f9fe66c0b1248f75fdc96b346e40f66c6976c7.tar.xz
Fix constness for dmnsn_list_comparator_fn.
Diffstat (limited to 'bench/libdimension')
-rw-r--r--bench/libdimension/list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bench/libdimension/list.c b/bench/libdimension/list.c
index 56a2181..b177d47 100644
--- a/bench/libdimension/list.c
+++ b/bench/libdimension/list.c
@@ -24,12 +24,12 @@
#include <stdint.h>
static bool
-dmnsn_comparator(dmnsn_list_iterator *i, dmnsn_list_iterator *j)
+dmnsn_comparator(const dmnsn_list_iterator *i, const dmnsn_list_iterator *j)
{
- uint32_t a, b;
- dmnsn_list_get(i, &a);
- dmnsn_list_get(j, &b);
- return a < b;
+ uint32_t *a, *b;
+ a = dmnsn_list_at(i);
+ b = dmnsn_list_at(j);
+ return *a < *b;
}
int