Fix signed/unsigned warnings.
This commit is contained in:
parent
8418d8f3dd
commit
3b640ca405
|
@ -37,7 +37,7 @@
|
||||||
#include "oleauto.h"
|
#include "oleauto.h"
|
||||||
|
|
||||||
#define VARTYPE_NOT_SUPPORTED 0
|
#define VARTYPE_NOT_SUPPORTED 0
|
||||||
static int vttypes[] = {
|
static ULONG vttypes[] = {
|
||||||
/* this is taken from wtypes.h. Only [S]es are supported by the SafeArray */
|
/* this is taken from wtypes.h. Only [S]es are supported by the SafeArray */
|
||||||
VARTYPE_NOT_SUPPORTED, /* VT_EMPTY [V] [P] nothing */
|
VARTYPE_NOT_SUPPORTED, /* VT_EMPTY [V] [P] nothing */
|
||||||
VARTYPE_NOT_SUPPORTED, /* VT_NULL [V] [P] SQL style Nul */
|
VARTYPE_NOT_SUPPORTED, /* VT_NULL [V] [P] SQL style Nul */
|
||||||
|
@ -88,7 +88,7 @@ VARTYPE_NOT_SUPPORTED /* VT_BYREF [V] void* for local use */
|
||||||
START_TEST(safearray)
|
START_TEST(safearray)
|
||||||
{
|
{
|
||||||
SAFEARRAY *a;
|
SAFEARRAY *a;
|
||||||
int i;
|
unsigned short i;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
SAFEARRAYBOUND bound;
|
SAFEARRAYBOUND bound;
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ START_TEST(safearray)
|
||||||
a = SafeArrayCreate(i, 1, &bound);
|
a = SafeArrayCreate(i, 1, &bound);
|
||||||
ok( ((a == NULL) && (vttypes[i] == 0)) ||
|
ok( ((a == NULL) && (vttypes[i] == 0)) ||
|
||||||
((a != NULL) && (vttypes[i] == a->cbElements)),
|
((a != NULL) && (vttypes[i] == a->cbElements)),
|
||||||
"SAC(%d,1,[1,0]), result %ld, expected %d\n",i,(a?a->cbElements:0),vttypes[i]
|
"SAC(%d,1,[1,0]), result %ld, expected %ld\n",i,(a?a->cbElements:0),vttypes[i]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue