diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-12-02 12:05:46 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-01-13 13:43:29 +0000 |
commit | 6d86ae0824bdd6175dd3874688a871e981093888 (patch) | |
tree | dac6f0cd324f9adcc3485eccfb7f55b84b0f0747 /tests/test-qmp-commands.c | |
parent | ef57137f1b30545a477ab798d34a669b0abf5320 (diff) | |
download | hqemu-6d86ae0824bdd6175dd3874688a871e981093888.zip hqemu-6d86ae0824bdd6175dd3874688a871e981093888.tar.gz |
test-coroutine: avoid overflow on 32-bit systems
unsigned long is not large enough to represent 1000000000 * duration there.
Just use floating point.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1417518350-6167-4-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/test-qmp-commands.c')
0 files changed, 0 insertions, 0 deletions