aboutsummaryrefslogtreecommitdiff
path: root/check-qdict.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-06-07 15:45:22 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2010-07-01 14:27:13 -0300
commitc8bc3cd72b4c530721d5be1bf9f599edb5d72160 (patch)
tree0542ddab81c4ae64892bf0add346a768bbab5a2e /check-qdict.c
parent83aba69ec05e17ff34708a5b7a3b719dac5c8fc0 (diff)
QDict: Small terminology change
Let's call a 'hash' only what is returned by our hash function, anything else is a 'bucket'. This helps avoiding confusion with regard to how we traverse our table. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'check-qdict.c')
-rw-r--r--check-qdict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-qdict.c b/check-qdict.c
index 2c3089fa66..1b070f4864 100644
--- a/check-qdict.c
+++ b/check-qdict.c
@@ -50,7 +50,7 @@ START_TEST(qdict_put_obj_test)
qdict_put_obj(qdict, "", QOBJECT(qint_from_int(num)));
fail_unless(qdict_size(qdict) == 1);
- ent = QLIST_FIRST(&qdict->table[12345 % QDICT_HASH_SIZE]);
+ ent = QLIST_FIRST(&qdict->table[12345 % QDICT_BUCKET_MAX]);
qi = qobject_to_qint(ent->value);
fail_unless(qint_get_int(qi) == num);