From ca1b5ed9367c9139f8a8a2f3ffc925b008058921 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 8 Sep 2020 16:43:10 -0400 Subject: [PATCH] fix minor issues --- src/my_pool_chunk.cpp | 2 +- src/my_pool_chunk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/my_pool_chunk.cpp b/src/my_pool_chunk.cpp index 0f7c35af91..a8364f8d89 100644 --- a/src/my_pool_chunk.cpp +++ b/src/my_pool_chunk.cpp @@ -132,7 +132,7 @@ template T *MyPoolChunk::get(int n, int &index) { if (n < minchunk || n > maxchunk) { errorflag = 3; - index = -1 + index = -1; return nullptr; } diff --git a/src/my_pool_chunk.h b/src/my_pool_chunk.h index f53bb46b1c..a9bcbd3e80 100644 --- a/src/my_pool_chunk.h +++ b/src/my_pool_chunk.h @@ -36,7 +36,7 @@ class MyPoolChunk { // return pointer/index of unused chunk of size N T *get(int n, int &index); - + // return indexed chunk to pool via free list // index = -1 if no allocated chunk