소스 검색

small fix in array lists

banana-cakes
FelixBrendel 6 년 전
부모
커밋
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));
}


불러오는 중...
취소
저장