fix output of size class offset test

This commit is contained in:
Daniel Micay 2018-10-04 02:40:51 -04:00
parent 15e5e2d0ac
commit 71d52d981e
2 changed files with 8 additions and 1 deletions

7
test/Makefile Normal file
View File

@ -0,0 +1,7 @@
EXECUTABLES := \
offset
all: $(EXECUTABLES)
clean:
rm -f $(EXECUTABLES)

View File

@ -30,7 +30,7 @@ int main(void) {
return 1;
}
if (i != 0) {
printf("%zu to %zu: %zd\n", size_classes[i - 1], size, p[i - 1] - p[i]);
printf("%zu to %zu: %zd\n", size_classes[i - 1], size, p[i] - p[i - 1]);
}
printf("%zu to %zu: %zd\n", size, size, q - p[i]);
}