Skip to content

Commit

Permalink
Merge pull request #53 from AntelopeIO/signness_fix
Browse files Browse the repository at this point in the history
different signedness warning fix
  • Loading branch information
spoonincode authored Aug 23, 2024
2 parents 1dc5316 + a399c29 commit 8992c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/chainbase/chainbase_node_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace chainbase {
char* result = (char*)_manager->allocate(sizeof(T) * allocation_batch_size);
_freelist_size += allocation_batch_size;
_freelist = bip::offset_ptr<list_item>{(list_item*)result};
for(int i = 0; i < allocation_batch_size-1; ++i) {
for(unsigned i = 0; i < allocation_batch_size-1; ++i) {
char* next = result + sizeof(T);
new(result) list_item{bip::offset_ptr<list_item>{(list_item*)next}};
result = next;
Expand Down

0 comments on commit 8992c78

Please sign in to comment.