mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
tests: fixes test-vmstate.c compile error on msys2
../tests/test-vmstate.c: In function 'int_cmp': ../tests/test-vmstate.c:884:5: error: unknown type name 'uint'; did you mean 'uInt'? 884 | uint ua = GPOINTER_TO_UINT(a); | ^~~~ | uInt ../tests/test-vmstate.c:885:5: error: unknown type name 'uint'; did you mean 'uInt'? 885 | uint ub = GPOINTER_TO_UINT(b); | ^~~~ | uInt make: *** [Makefile.ninja:5461:tests/test-vmstate.exe.p/test-vmstate.c.obj] 错误 1 Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Message-Id: <20200905063813.1875-1-luoyonggang@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
fec7bcf16b
commit
85c93c57f1
1 changed files with 2 additions and 2 deletions
|
@ -881,8 +881,8 @@ static gint interval_cmp(gconstpointer a, gconstpointer b, gpointer user_data)
|
||||||
/* ID comparison function */
|
/* ID comparison function */
|
||||||
static gint int_cmp(gconstpointer a, gconstpointer b, gpointer user_data)
|
static gint int_cmp(gconstpointer a, gconstpointer b, gpointer user_data)
|
||||||
{
|
{
|
||||||
uint ua = GPOINTER_TO_UINT(a);
|
guint ua = GPOINTER_TO_UINT(a);
|
||||||
uint ub = GPOINTER_TO_UINT(b);
|
guint ub = GPOINTER_TO_UINT(b);
|
||||||
return (ua > ub) - (ua < ub);
|
return (ua > ub) - (ua < ub);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue