mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Fix warnings on x86-64. By fvbommel.
This commit is contained in:
parent
cc6bde46f9
commit
cdbc4f84d2
13 changed files with 27 additions and 26 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue