From 732d0eac5c69e2340d99f70470b69e76b5689e99 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 6 Feb 1989 14:38:00 +0000 Subject: [PATCH] Bug fix in cast --- util/opt/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)];