src/buffer.c

changeset 536
cb9b9739055e
parent 534
0e893f84a7dd
child 538
2cfbcbe86a7c
     1.1 --- a/src/buffer.c	Sun Apr 24 17:45:09 2022 +0200
     1.2 +++ b/src/buffer.c	Sat Apr 30 08:30:51 2022 +0200
     1.3 @@ -119,7 +119,8 @@
     1.4          return 0;
     1.5      }
     1.6  
     1.7 -    if (cxReallocate(buffer->allocator, &buffer->bytes, newcap) == 0) {
     1.8 +    if (cxReallocate(buffer->allocator,
     1.9 +                     (void **) &buffer->bytes, newcap) == 0) {
    1.10          buffer->capacity = newcap;
    1.11          return 0;
    1.12      } else {

mercurial