diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-05-10 17:46:07 -0500 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-05-23 09:44:21 -0400 |
commit | 089f26bb735fb414b79f5fa3753910d5339d2a1d (patch) | |
tree | e7ce56d929f7505be1dcb744a3c863be1943dd09 /disas.c | |
parent | e92cfa0d90c618ff1f131c60ef1b27aa6fe69a0a (diff) |
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 'disas.c')
0 files changed, 0 insertions, 0 deletions