Просмотр исходного кода

small fix in array lists

banana-cakes
FelixBrendel 6 лет назад
Родитель
Сommit
60e3253036
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      arraylist.hpp

+ 1
- 1
arraylist.hpp Просмотреть файл

@@ -52,7 +52,7 @@ struct Array_List {
}

void reserve(unsigned int count) {
if (next_index+count <= (unsigned int)length) {
if (next_index+count >= (unsigned int)length) {
length *= 2;
data = (type*)realloc(data, length * sizeof(type));
}


Загрузка…
Отмена
Сохранить