mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-17 17:29:02 +02:00
Fix warnings on x86-64. By fvbommel.
This commit is contained in:
@@ -24,12 +24,12 @@ const LLStructType* DtoArrayType(Type* arrayTy)
|
||||
const LLType* elemty = DtoType(arrayTy->nextOf());
|
||||
if (elemty == LLType::VoidTy)
|
||||
elemty = LLType::Int8Ty;
|
||||
return LLStructType::get(DtoSize_t(), getPtrToType(elemty), 0);
|
||||
return LLStructType::get(DtoSize_t(), getPtrToType(elemty), NULL);
|
||||
}
|
||||
|
||||
const LLStructType* DtoArrayType(const LLType* t)
|
||||
{
|
||||
return LLStructType::get(DtoSize_t(), getPtrToType(t), 0);
|
||||
return LLStructType::get(DtoSize_t(), getPtrToType(t), NULL);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user