blob: c89768329f16dc1cfc041d10c399904cb5a12273 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- array.c.orig Sat Oct 16 18:02:07 2004
+++ array.c Sat Oct 16 18:02:10 2004
@@ -223,12 +223,14 @@
NewBoxVector (int nvalues, TypePtr type)
{
ENTER ();
- BoxVectorPtr bv = ALLOCATE (&BoxVectorType,
- sizeof (BoxVector) +
- nvalues * sizeof (BoxPtr));
+ BoxVectorPtr bv;
int i;
- BoxPtr *boxes = BoxVectorBoxes (bv);
-
+ BoxPtr *boxes;
+
+ bv = ALLOCATE (&BoxVectorType, sizeof (BoxVector) +
+ nvalues * sizeof (BoxPtr));
+ boxes = BoxVectorBoxes (bv);
+
bv->nvalues = nvalues;
bv->type = type;
for (i = 0; i < nvalues; i++)
|