mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-13 22:48:43 +03:00
accept i1 types as dlang bool
This commit is contained in:
parent
937c57b835
commit
f1f702af36
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ string dtype(Record* rec, bool readOnlyMem)
|
||||||
type = type.substr(i);
|
type = type.substr(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(type == "i8")
|
if(type == "i1" && vec.empty())
|
||||||
|
return "bool";
|
||||||
|
else if(type == "i8")
|
||||||
return "byte" + vec;
|
return "byte" + vec;
|
||||||
else if(type == "i16")
|
else if(type == "i16")
|
||||||
return "short" + vec;
|
return "short" + vec;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue