commit | 1ee518760aee476879d5c59476d9a316edbff332 | [log] [tgz] |
---|---|---|
author | Michael Roth <mdroth@linux.vnet.ibm.com> | Fri May 11 12:43:24 2012 -0500 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Mon May 14 10:08:39 2012 -0300 |
tree | ccba9d54bcf61add5740b3db422e2b71895ec6b4 | |
parent | 94d1991445fa3582c042ee4e5b72606e2fc39cc2 [diff] |
qapi: QMP input visitor, handle floats parsed as ints JSON numbers can be interpreted as either integers or floating point values depending on their representation. As a result, QMP input visitor might visit a QInt when it was expecting a QFloat, so add handling to account for this. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Acked-by: Andreas Färber <afaerber@suse.de>