msvcr90: Fix compilation warning in __AdjustPointer tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cfcc280905
commit
eb2e9271a4
|
@ -1475,9 +1475,12 @@ static void test_is_exception_typeof(void)
|
||||||
|
|
||||||
static void test__AdjustPointer(void)
|
static void test__AdjustPointer(void)
|
||||||
{
|
{
|
||||||
int off = 0xf0;
|
struct {
|
||||||
void *obj1 = &off;
|
int vbase;
|
||||||
void *obj2 = (char*)&off - 2;
|
int off;
|
||||||
|
} obj = { 0, 0xf0 };
|
||||||
|
void *obj1 = &obj.off;
|
||||||
|
void *obj2 = &obj;
|
||||||
struct test_data {
|
struct test_data {
|
||||||
void *ptr;
|
void *ptr;
|
||||||
void *ret;
|
void *ret;
|
||||||
|
@ -1490,10 +1493,10 @@ static void test__AdjustPointer(void)
|
||||||
{NULL, NULL, {0, -1, 0}},
|
{NULL, NULL, {0, -1, 0}},
|
||||||
{(void*)0xbeef, (void*)0xbef0, {1, -1, 1}},
|
{(void*)0xbeef, (void*)0xbef0, {1, -1, 1}},
|
||||||
{(void*)0xbeef, (void*)0xbeee, {-1, -1, 0}},
|
{(void*)0xbeef, (void*)0xbeee, {-1, -1, 0}},
|
||||||
{&obj1, (char*)&obj1 + off, {0, 0, 0}},
|
{&obj1, (char*)&obj1 + obj.off, {0, 0, 0}},
|
||||||
{(char*)&obj1 - 5, (char*)&obj1 + off, {0, 5, 0}},
|
{(char*)&obj1 - 5, (char*)&obj1 + obj.off, {0, 5, 0}},
|
||||||
{(char*)&obj1 - 3, (char*)&obj1 + off + 24, {24, 3, 0}},
|
{(char*)&obj1 - 3, (char*)&obj1 + obj.off + 24, {24, 3, 0}},
|
||||||
{(char*)&obj2 - 17, (char*)&obj2 + off + 4, {4, 17, 2}}
|
{(char*)&obj2 - 17, (char*)&obj2 + obj.off + 4, {4, 17, sizeof(int)}}
|
||||||
};
|
};
|
||||||
void *ret;
|
void *ret;
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue