Fix thinko in previous change.
authorChris Hanson <org/chris-hanson/cph>
Thu, 8 Jan 2004 17:52:34 +0000 (17:52 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 8 Jan 2004 17:52:34 +0000 (17:52 +0000)
v7/src/microcode/primutl.c

index 93c05957a65e614273f4baa1b5a6a315f33ba8d6..3579d2bca49fa2fa0fc1525131c3d254c77b999a 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: primutl.c,v 9.77 2004/01/07 05:30:44 cph Exp $
+$Id: primutl.c,v 9.78 2004/01/08 17:52:34 cph Exp $
 
 Copyright 1993,2000,2001,2004 Massachusetts Institute of Technology
 
@@ -149,11 +149,13 @@ static unsigned long prim_table_size = 0;
 {                                                                      \
   if (table == 0)                                                      \
     {                                                                  \
-      table = (OS_malloc (new_size * (sizeof (elt_t))));               \
       static_elt_t * from = (& (static_table [0]));                    \
       static_elt_t * from_end                                          \
        = (& (static_table [MAX_STATIC_PRIMITIVE + 1]));                \
-      elt_t * to = ((elt_t *) table);                                  \
+      elt_t * to;                                                      \
+                                                                       \
+      table = (OS_malloc (new_size * (sizeof (elt_t))));               \
+      to = ((elt_t *) table);                                          \
       while (from < from_end)                                          \
        (*to++) = ((elt_t) (*from++));                                  \
     }                                                                  \