]> git.proxmox.com Git - qemu.git/blobdiff - qom/object.c
exec: Pass CPUState to cpu_reset_interrupt()
[qemu.git] / qom / object.c
index 4b72a643379b875edc01dec6f9bedc78bdc4457c..3d638ff273e80464ab7d06b890d92dee7a91a3c8 100644 (file)
@@ -449,7 +449,8 @@ ObjectClass *object_class_dynamic_cast(ObjectClass *class,
     TypeImpl *type = class->type;
     ObjectClass *ret = NULL;
 
-    if (type->num_interfaces && type_is_ancestor(target_type, type_interface)) {
+    if (type->class->interfaces &&
+            type_is_ancestor(target_type, type_interface)) {
         int found = 0;
         GSList *i;