NetChannels #20

Merged
Karutoh merged 22 commits from NetChannels into main 2025-08-13 19:32:54 -07:00
Showing only changes of commit a7f09382fd - Show all commits

View File

@@ -392,7 +392,7 @@ namespace ehs
{ {
if (stride) if (stride)
{ {
rawSize = (this->size + size()) / stride * stride; rawSize = (this->size + size) / stride * stride;
if ((this->size + size) % stride) if ((this->size + size) % stride)
rawSize += stride; rawSize += stride;
} }
@@ -403,7 +403,7 @@ namespace ehs
T* result = new T[rawSize]; T* result = new T[rawSize];
for (N i = 0; i < size; ++i) for (N i = 0; i < this->size; ++i)
result[i] = std::move(data[i]); result[i] = std::move(data[i]);
delete[] data; delete[] data;