2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index 30b53623e99d2118a68dfe84cf15e9e90d32e139..f21555845142c27eda6220d43cad2714e220834d 100644 (file)
@@ -636,7 +636,7 @@ replace_type (struct type *ntype, struct type *type)
        call replace_type().  */
     gdb_assert (TYPE_ADDRESS_CLASS_ALL (chain) == 0);
 
-    TYPE_LENGTH (ntype) = TYPE_LENGTH (type);
+    TYPE_LENGTH (chain) = TYPE_LENGTH (type);
     chain = TYPE_CHAIN (chain);
   } while (ntype != chain);
 
This page took 0.023926 seconds and 4 git commands to generate.