mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
cmph-bdz-test: Use more size_t
This commit is contained in:
parent
a201cbd719
commit
e9bdbfaf4b
@ -50,15 +50,14 @@ build (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
assert_hashes_unique (unsigned n_hashes,
|
assert_hashes_unique (size_t n_hashes,
|
||||||
uint32_t* hashes)
|
uint32_t* hashes)
|
||||||
{
|
{
|
||||||
unsigned i;
|
size_t i;
|
||||||
|
|
||||||
for (i = 0; i < n_hashes; i++)
|
for (i = 0; i < n_hashes; i++)
|
||||||
{
|
{
|
||||||
unsigned j = 0;
|
for (size_t j = 0; j < n_hashes; j++)
|
||||||
for (j = 0; j < n_hashes; j++)
|
|
||||||
{
|
{
|
||||||
if (j != i)
|
if (j != i)
|
||||||
g_assert_cmpuint (hashes[i], !=, hashes[j]);
|
g_assert_cmpuint (hashes[i], !=, hashes[j]);
|
||||||
@ -70,7 +69,7 @@ static void
|
|||||||
test_search (void)
|
test_search (void)
|
||||||
{
|
{
|
||||||
cmph_t *c = build();
|
cmph_t *c = build();
|
||||||
unsigned i;
|
size_t i;
|
||||||
uint32_t hash;
|
uint32_t hash;
|
||||||
uint32_t hashes[3];
|
uint32_t hashes[3];
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
@ -102,7 +101,7 @@ static void
|
|||||||
test_search_packed (void)
|
test_search_packed (void)
|
||||||
{
|
{
|
||||||
cmph_t *c = build();
|
cmph_t *c = build();
|
||||||
unsigned i;
|
size_t i;
|
||||||
uint32_t bufsize;
|
uint32_t bufsize;
|
||||||
uint32_t hash;
|
uint32_t hash;
|
||||||
uint32_t hashes[3];
|
uint32_t hashes[3];
|
||||||
|
Loading…
Reference in New Issue
Block a user