* class.c (base_derived_from): Make sure return value is a bool.

From-SVN: r58290
This commit is contained in:
Mark Mitchell 2002-10-18 21:46:53 +00:00 committed by Mark Mitchell
parent 5a6be855cb
commit e4f4feba32
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-10-18 Mark Mitchell <mark@codesourcery.com>
* class.c (base_derived_from): Make sure return value is a bool.
2002-10-18 Mark Mitchell <mark@codesourcery.com>
* class.c (find_final_overrider_data_s): Remove overriding_fn and

View File

@ -2225,7 +2225,7 @@ dfs_base_derived_from (tree binfo, void *data)
static bool
base_derived_from (tree derived, tree base)
{
return dfs_walk (derived, dfs_base_derived_from, NULL, base);
return dfs_walk (derived, dfs_base_derived_from, NULL, base) != NULL_TREE;
}
typedef struct find_final_overrider_data_s {