On Thursday, 5 May 2022 at 11:49:29 UTC, vit wrote:

```d
      this.capacity += DEF_VEC_REALLOC_SIZE;
      //realloc(this.ptr, T.sizeof * DEF_VEC_REALLOC_SIZE);
this.ptr = realloc(this.ptr, T.sizeof * this.capacity); //<<--
```

Oh, right! I forgot to say it. I'm using my own `realloc` and not the one from libc. So, the `realloc` function is not the problem here.

Reply via email to