File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ bool FreeList<NUM_BUCKETS>::add_chunk(span<cpp::byte> chunk) {
99
99
100
100
aliased.bytes = chunk.data ();
101
101
102
- unsigned short chunk_ptr = find_chunk_ptr_for_size (chunk.size (), false );
102
+ size_t chunk_ptr = find_chunk_ptr_for_size (chunk.size (), false );
103
103
104
104
// Add it to the correct list.
105
105
aliased.node ->size = chunk.size ();
@@ -114,7 +114,7 @@ span<cpp::byte> FreeList<NUM_BUCKETS>::find_chunk(size_t size) const {
114
114
if (size == 0 )
115
115
return span<cpp::byte>();
116
116
117
- unsigned short chunk_ptr = find_chunk_ptr_for_size (size, true );
117
+ size_t chunk_ptr = find_chunk_ptr_for_size (size, true );
118
118
119
119
// Check that there's data. This catches the case where we run off the
120
120
// end of the array
@@ -144,7 +144,7 @@ span<cpp::byte> FreeList<NUM_BUCKETS>::find_chunk(size_t size) const {
144
144
145
145
template <size_t NUM_BUCKETS>
146
146
bool FreeList<NUM_BUCKETS>::remove_chunk(span<cpp::byte> chunk) {
147
- unsigned short chunk_ptr = find_chunk_ptr_for_size (chunk.size (), true );
147
+ size_t chunk_ptr = find_chunk_ptr_for_size (chunk.size (), true );
148
148
149
149
// Walk that list, finding the chunk.
150
150
union {
You can’t perform that action at this time.
0 commit comments