summaryrefslogtreecommitdiffstats
path: root/device-hotplug.c
diff options
context:
space:
mode:
authorMichael Roth2013-05-11 00:46:07 +0200
committerLuiz Capitulino2013-05-23 15:44:21 +0200
commit089f26bb735fb414b79f5fa3753910d5339d2a1d (patch)
treee7ce56d929f7505be1dcb744a3c863be1943dd09 /device-hotplug.c
parentqapi: add QMP input test for large integers (diff)
downloadqemu-089f26bb735fb414b79f5fa3753910d5339d2a1d.tar.gz
qemu-089f26bb735fb414b79f5fa3753910d5339d2a1d.tar.xz
qemu-089f26bb735fb414b79f5fa3753910d5339d2a1d.zip
qapi: fix visitor serialization tests for numbers/doubles
We never actually stored the stringified double values into the strings before we did the comparisons. This left number/double values completely uncovered in test-visitor-serialization tests. Fixing this exposed a bug in our handling of large whole number values in QEMU's JSON parser which is now fixed. Simplify the code while we're at it by dropping the calc_float_string_storage() craziness in favor of GStrings. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Amos Kong <akong@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'device-hotplug.c')
0 files changed, 0 insertions, 0 deletions