From: ceriel Date: Mon, 6 Feb 1989 14:38:00 +0000 (+0000) Subject: Bug fix in cast X-Git-Tag: release-5-5~2627 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=732d0eac5c69e2340d99f70470b69e76b5689e99;p=ack.git Bug fix in cast --- diff --git a/util/opt/alloc.c b/util/opt/alloc.c index 6c489f76a..fe5a1ddb2 100644 --- a/util/opt/alloc.c +++ b/util/opt/alloc.c @@ -371,7 +371,7 @@ oldcore(p,size) short *p; int size; { assert(size<2*MAXSHORT); #ifdef CORECHECK for (cp=freelist[size/sizeof(short)]; cp != (short *) 0; - cp = (short *) *cp) + cp = *(short **) cp) assert(cp != p); #endif *(short **) p = freelist[size/sizeof(short)];