]> git.proxmox.com Git - mirror_qemu.git/commit
test-coroutine: avoid overflow on 32-bit systems
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Dec 2014 11:05:46 +0000 (12:05 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 13:43:29 +0000 (13:43 +0000)
commit6d86ae0824bdd6175dd3874688a871e981093888
treedac6f0cd324f9adcc3485eccfb7f55b84b0f0747
parentef57137f1b30545a477ab798d34a669b0abf5320
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>
tests/test-coroutine.c