X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/750e4b6cad56c36353b9604788c202d49eb8de56..85bb21f7edaa024657a09129d52edf66d8ab7fa2:/da-test.c?ds=sidebyside diff --git a/da-test.c b/da-test.c index 6a73b0b..4b1966a 100644 --- a/da-test.c +++ b/da-test.c @@ -82,10 +82,10 @@ int main(void) DA_DESTROY(&vv); } else if (strcmp(p, "delete") == 0) { int n = atoi(strtok(0, " ")); - DA_SLIDE(&v, -n); + DA_UNSLIDE(&v, n); } else if (strcmp(p, "reduce") == 0) { int n = atoi(strtok(0, " ")); - DA_EXTEND(&v, -n); + DA_SHRINK(&v, n); } else if (strcmp(p, "set") == 0) { size_t i = atoi(strtok(0, " ")); int n = atoi(strtok(0, " "));