[build] fix conversion warnings
This commit is contained in:
parent
764936fe64
commit
1f3f3682cc
@ -209,7 +209,7 @@ static void item_set(wListDictionary* listDictionary, wListDictionaryItem* item,
|
|||||||
if (listDictionary->objectValue.fnObjectNew)
|
if (listDictionary->objectValue.fnObjectNew)
|
||||||
item->value = listDictionary->objectValue.fnObjectNew(value);
|
item->value = listDictionary->objectValue.fnObjectNew(value);
|
||||||
else
|
else
|
||||||
item->value = value;
|
item->value = (void*)(uintptr_t)value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static wListDictionaryItem* new_item(wListDictionary* listDictionary, const void* key,
|
static wListDictionaryItem* new_item(wListDictionary* listDictionary, const void* key,
|
||||||
@ -222,7 +222,7 @@ static wListDictionaryItem* new_item(wListDictionary* listDictionary, const void
|
|||||||
if (listDictionary->objectKey.fnObjectNew)
|
if (listDictionary->objectKey.fnObjectNew)
|
||||||
item->key = listDictionary->objectKey.fnObjectNew(key);
|
item->key = listDictionary->objectKey.fnObjectNew(key);
|
||||||
else
|
else
|
||||||
item->key = key;
|
item->key = (void*)(uintptr_t)key;
|
||||||
if (!item->key)
|
if (!item->key)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
@ -129,8 +129,8 @@ int TestASN1Read(int argc, char* argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const BYTE oid1_val[] = { 1 };
|
static BYTE oid1_val[] = { 1 };
|
||||||
static const WinPrAsn1_OID oid1 = { sizeof(oid1_val), (const BYTE*)oid1_val };
|
static const WinPrAsn1_OID oid1 = { sizeof(oid1_val), oid1_val };
|
||||||
static BYTE oid2_val[] = { 2, 2 };
|
static BYTE oid2_val[] = { 2, 2 };
|
||||||
static WinPrAsn1_OID oid2 = { sizeof(oid2_val), oid2_val };
|
static WinPrAsn1_OID oid2 = { sizeof(oid2_val), oid2_val };
|
||||||
static BYTE oid3_val[] = { 3, 3, 3 };
|
static BYTE oid3_val[] = { 3, 3, 3 };
|
||||||
|
Loading…
Reference in New Issue
Block a user