PR 6878
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index c21d903004910deaca9b674dd2a4587549ca42fc..c1bb76528b6581de7dcba024170873503c5fc59d 100644 (file)
@@ -663,7 +663,7 @@ lookup_methodptr_type (struct type *to_type)
   mtype = alloc_type (TYPE_OBJFILE (to_type));
   TYPE_TARGET_TYPE (mtype) = to_type;
   TYPE_DOMAIN_TYPE (mtype) = TYPE_DOMAIN_TYPE (to_type);
-  TYPE_LENGTH (mtype) = cplus_method_ptr_size ();
+  TYPE_LENGTH (mtype) = cplus_method_ptr_size (to_type);
   TYPE_CODE (mtype) = TYPE_CODE_METHODPTR;
   return mtype;
 }
This page took 0.023812 seconds and 4 git commands to generate.