@@ -73,7 +73,7 @@ void exhaustion_test1 () {
73
73
74
74
// Delete in allocation order
75
75
ptrs = alloc_series ( 32 );
76
- std::printf (" Allocated %lu 32 byte chunks\n " , ptrs.size ());
76
+ std::printf (" Allocated %zu 32 byte chunks\n " , ptrs.size ());
77
77
print_free_list ();
78
78
for ( container::iterator iter = ptrs.begin (); iter != ptrs.end (); ++iter )
79
79
fallback_free ( *iter );
@@ -82,15 +82,15 @@ void exhaustion_test1 () {
82
82
83
83
// Delete in reverse order
84
84
ptrs = alloc_series ( 32 );
85
- std::printf (" Allocated %lu 32 byte chunks\n " , ptrs.size ());
85
+ std::printf (" Allocated %zu 32 byte chunks\n " , ptrs.size ());
86
86
for ( container::reverse_iterator iter = ptrs.rbegin (); iter != ptrs.rend (); ++iter )
87
87
fallback_free ( *iter );
88
88
print_free_list ();
89
89
std::printf (" ----\n " );
90
90
91
91
// Alternate deletions
92
92
ptrs = alloc_series ( 32 );
93
- std::printf (" Allocated %lu 32 byte chunks\n " , ptrs.size ());
93
+ std::printf (" Allocated %zu 32 byte chunks\n " , ptrs.size ());
94
94
while ( ptrs.size () > 0 )
95
95
fallback_free ( pop ( ptrs, ptrs.size () % 1 == 1 ));
96
96
print_free_list ();
@@ -105,7 +105,8 @@ void exhaustion_test2 () {
105
105
// Delete in allocation order
106
106
ptrs = alloc_series ( 32 , 1.5 );
107
107
108
- std::printf (" Allocated %lu { 32, 48, 72, 108, 162 ... } byte chunks\n " , ptrs.size ());
108
+ std::printf (" Allocated %zu { 32, 48, 72, 108, 162 ... } byte chunks\n " ,
109
+ ptrs.size ());
109
110
print_free_list ();
110
111
for ( container::iterator iter = ptrs.begin (); iter != ptrs.end (); ++iter )
111
112
fallback_free ( *iter );
@@ -115,15 +116,17 @@ void exhaustion_test2 () {
115
116
// Delete in reverse order
116
117
print_free_list ();
117
118
ptrs = alloc_series ( 32 , 1.5 );
118
- std::printf (" Allocated %lu { 32, 48, 72, 108, 162 ... } byte chunks\n " , ptrs.size ());
119
+ std::printf (" Allocated %zu { 32, 48, 72, 108, 162 ... } byte chunks\n " ,
120
+ ptrs.size ());
119
121
for ( container::reverse_iterator iter = ptrs.rbegin (); iter != ptrs.rend (); ++iter )
120
122
fallback_free ( *iter );
121
123
print_free_list ();
122
124
std::printf (" ----\n " );
123
125
124
126
// Alternate deletions
125
127
ptrs = alloc_series ( 32 , 1.5 );
126
- std::printf (" Allocated %lu { 32, 48, 72, 108, 162 ... } byte chunks\n " , ptrs.size ());
128
+ std::printf (" Allocated %zu { 32, 48, 72, 108, 162 ... } byte chunks\n " ,
129
+ ptrs.size ());
127
130
while ( ptrs.size () > 0 )
128
131
fallback_free ( pop ( ptrs, ptrs.size () % 1 == 1 ));
129
132
print_free_list ();
@@ -139,7 +142,7 @@ void exhaustion_test3 () {
139
142
140
143
// Delete in allocation order
141
144
ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0 ] ));
142
- std::printf (" Allocated %lu chunks\n " , ptrs.size ());
145
+ std::printf (" Allocated %zu chunks\n " , ptrs.size ());
143
146
print_free_list ();
144
147
for ( container::iterator iter = ptrs.begin (); iter != ptrs.end (); ++iter )
145
148
fallback_free ( *iter );
@@ -149,15 +152,15 @@ void exhaustion_test3 () {
149
152
// Delete in reverse order
150
153
print_free_list ();
151
154
ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0 ] ));
152
- std::printf (" Allocated %lu chunks\n " , ptrs.size ());
155
+ std::printf (" Allocated %zu chunks\n " , ptrs.size ());
153
156
for ( container::reverse_iterator iter = ptrs.rbegin (); iter != ptrs.rend (); ++iter )
154
157
fallback_free ( *iter );
155
158
print_free_list ();
156
159
std::printf (" ----\n " );
157
160
158
161
// Alternate deletions
159
162
ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0 ] ));
160
- std::printf (" Allocated %lu chunks\n " , ptrs.size ());
163
+ std::printf (" Allocated %zu chunks\n " , ptrs.size ());
161
164
while ( ptrs.size () > 0 )
162
165
fallback_free ( pop ( ptrs, ptrs.size () % 1 == 1 ));
163
166
print_free_list ();
0 commit comments