mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
tests: fix 64-bit int literals for 32-bit hosts
On 32-bit hosts: CC tests/test-opts-visitor.o tests/test-opts-visitor.c: In function 'test_value': tests/test-opts-visitor.c:128: warning: integer constant is too large for 'long' type CC tests/test-bitops.o tests/test-bitops.c:34: warning: integer constant is too large for 'long' type tests/test-bitops.c:35: warning: integer constant is too large for 'long' type tests/test-bitops.c:35: warning: integer constant is too large for 'long' type CC tests/endianness-test.o tests/endianness-test.c:47: warning: integer constant is too large for 'long' type Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1383669768-23926-1-git-send-email-stefanha@redhat.com Signed-off-by: Anthony Liguori <aliguori@amazon.com>
This commit is contained in:
parent
6f1ce94a29
commit
5cb6be2ca3
3 changed files with 5 additions and 4 deletions
|
@ -31,8 +31,8 @@ static const S32Test test_s32_data[] = {
|
|||
};
|
||||
|
||||
static const S64Test test_s64_data[] = {
|
||||
{ 0x8459826734967223, 60, 4, -8 },
|
||||
{ 0x8459826734967223, 0, 64, 0x8459826734967223 },
|
||||
{ 0x8459826734967223ULL, 60, 4, -8 },
|
||||
{ 0x8459826734967223ULL, 0, 64, 0x8459826734967223LL },
|
||||
};
|
||||
|
||||
static void test_sextract32(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue