bug fix
This commit is contained in:
1 parent
361c80d4d9
commit
b1b6593502
1 file changed
+1
-1
@@ -102,7 +102,7 @@ namespace TinySTL{
|
|||||||
for (int i = 0; i <= EMaxBytes::MAXBYTES; i += EAlign::ALIGN){
|
for (int i = 0; i <= EMaxBytes::MAXBYTES; i += EAlign::ALIGN){
|
||||||
my_free_list = free_list + FREELIST_INDEX(i);
|
my_free_list = free_list + FREELIST_INDEX(i);
|
||||||
p = *my_free_list;
|
p = *my_free_list;
|
||||||
if (!p){
|
if (p != 0){
|
||||||
*my_free_list = p->next;
|
*my_free_list = p->next;
|
||||||
start_free = (char *)p;
|
start_free = (char *)p;
|
||||||
end_free = start_free + i;
|
end_free = start_free + i;
|
||||||
|
|||||||
Reference in new issue
Block a user