Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 86e2e70

Browse files
glandiumJason Evans
authored and
Jason Evans
committed
Rename "small" local variable, because windows headers #define it
1 parent 7330c37 commit 86e2e70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/stats.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ TEST_END
9797
TEST_BEGIN(test_stats_arenas_summary)
9898
{
9999
unsigned arena;
100-
void *small, *large;
100+
void *little, *large;
101101
uint64_t epoch;
102102
size_t sz;
103103
int expected = config_stats ? 0 : ENOENT;
@@ -108,8 +108,8 @@ TEST_BEGIN(test_stats_arenas_summary)
108108
assert_d_eq(mallctl("thread.arena", NULL, NULL, &arena, sizeof(arena)),
109109
0, "Unexpected mallctl() failure");
110110

111-
small = mallocx(SMALL_MAXCLASS, 0);
112-
assert_ptr_not_null(small, "Unexpected mallocx() failure");
111+
little = mallocx(SMALL_MAXCLASS, 0);
112+
assert_ptr_not_null(little, "Unexpected mallocx() failure");
113113
large = mallocx(arena_maxclass, 0);
114114
assert_ptr_not_null(large, "Unexpected mallocx() failure");
115115

@@ -137,7 +137,7 @@ TEST_BEGIN(test_stats_arenas_summary)
137137
"nmadvise should be no greater than purged");
138138
}
139139

140-
dallocx(small, 0);
140+
dallocx(little, 0);
141141
dallocx(large, 0);
142142
}
143143
TEST_END

0 commit comments

Comments
 (0)