mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qom/object: fix 2 comment typos
Also change the misleading definition of macro OBJECT_CLASS_CHECK Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
9f503153c7
commit
b30d805464
2 changed files with 6 additions and 6 deletions
|
@ -204,7 +204,7 @@ static bool type_is_ancestor(TypeImpl *type, TypeImpl *target_type)
|
|||
{
|
||||
assert(target_type);
|
||||
|
||||
/* Check if typename is a direct ancestor of type */
|
||||
/* Check if target_type is a direct ancestor of type */
|
||||
while (type) {
|
||||
if (type == target_type) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue