Skip to content
Snippets Groups Projects
Commit a131e83b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Changed the initial allocation from
    liste->nmax = ((n - 1) / liste->incr + 1) * liste->incr,
which does not allow us to allocate lists smaller than iste->incr, to
    liste->nmax = n;

With this change, when we do "List_Create(1, N, sizeof(blah))", we
initially only allocate sizeof(blah) instead of N*sizeof(blah).
parent 749e1550
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment