fixed minor bug: report on used memory was wrong

This commit is contained in:
ceriel 1988-04-15 16:05:05 +00:00
parent a93bf46382
commit 09ed33d12d

View file

@ -877,5 +877,5 @@ statistics() {
used("Pat bytes",npatbytes+1,MAXPATBYTES);
if (tabledebug)
used("Source lines",maxline,MAXSOURCELINES);
fprintf(stderr,"%ldK heap used\n",((long) (sbrk(0)-end+1023))/1024);
fprintf(stderr,"%ldK heap used\n",((long) (sbrk(0)-(char *) &end+1023))/1024);
}