forked from osmocom/wireshark
From Jim Young via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9613
Don't use "rand" as a variable name, it shadows a global in recent MacOSX stdlib.h svn path=/trunk/; revision=54598
This commit is contained in:
parent
21cc278905
commit
36e68f7b36
|
@ -787,9 +787,9 @@ wmem_test_tree(void)
|
|||
|
||||
tree = wmem_tree_new(allocator);
|
||||
for (i=0; i<CONTAINER_ITERS; i++) {
|
||||
guint32 rand = g_test_rand_int();
|
||||
wmem_tree_insert32(tree, rand, GINT_TO_POINTER(i));
|
||||
g_assert(wmem_tree_lookup32(tree, rand) == GINT_TO_POINTER(i));
|
||||
guint32 rand_int = g_test_rand_int();
|
||||
wmem_tree_insert32(tree, rand_int, GINT_TO_POINTER(i));
|
||||
g_assert(wmem_tree_lookup32(tree, rand_int) == GINT_TO_POINTER(i));
|
||||
}
|
||||
wmem_free_all(allocator);
|
||||
|
||||
|
|
Loading…
Reference in New Issue