Skip to content

modeMemoryPool_t::reserve bug #743

@stgeke

Description

@stgeke

I think https://github.com/libocca/occa/blob/main/src/occa/internal/core/memoryPool.cpp#L131 should be changed to:

} else {
-       resize(reserved + alignedBytes);
+      resize(offset + alignedBytes);
      return slice(reserved, bytes);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUse this label when reporting bugs!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions