diff options
author | 2017-02-17 21:38:22 +0100 | |
---|---|---|
committer | 2017-02-22 19:52:11 +0100 | |
commit | 8978b34af3250354e0b67340a7e920f909beda13 (patch) | |
tree | 75069682843ff04004f7b11c76607e961be1e510 /scripts/qapi-commands.py | |
parent | tests: Don't check qobject_type() before qobject_to_qint() (diff) | |
download | qemu-8978b34af3250354e0b67340a7e920f909beda13.tar.xz qemu-8978b34af3250354e0b67340a7e920f909beda13.zip |
tests: Don't check qobject_type() before qobject_to_qfloat()
qobject_to_qfloat(obj) returns NULL when obj isn't a QFloat. Check
that instead of qobject_type(obj) == QTYPE_QFLOAT.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-12-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions