Bug fix in cast
authorceriel <none@none>
Mon, 6 Feb 1989 14:38:00 +0000 (14:38 +0000)
committerceriel <none@none>
Mon, 6 Feb 1989 14:38:00 +0000 (14:38 +0000)
util/opt/alloc.c

index 6c489f7..fe5a1dd 100644 (file)
@@ -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)];