* cp-valprint.c (cp_print_class_method): Call unpack_pointer() with

actually incoming type.
This commit is contained in:
Corinna Vinschen
2003-04-14 08:47:42 +00:00
parent adb616d7c2
commit 1947a811e8
2 changed files with 6 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ cp_print_class_method (char *valaddr,
fprintf_filtered (stream, "<unknown>");
return;
}
addr = unpack_pointer (lookup_pointer_type (builtin_type_void), valaddr);
addr = unpack_pointer (type, valaddr);
if (METHOD_PTR_IS_VIRTUAL (addr))
{
offset = METHOD_PTR_TO_VOFFSET (addr);