On 04/27/2017 06:50 AM, Markus Armbruster wrote: >>>> >>>> It would be more obvious with a check for qobject_type(tos->obj), no? >>> >>> --verbose? >>> >> >> Instead of assert(tos->h) assert(qobject_type(tos->obj) == QTYPE_QDICT) ? > > The two conditions imply each other. We can assert either one, or even > both. Eric, got a preference?
Asserting both might make it easier to come up to speed when reading the code a year from now. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
