mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +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);
|
||||
}
|
||||
|
||||
if(type == "i8")
|
||||
if(type == "i1" && vec.empty())
|
||||
return "bool";
|
||||
else if(type == "i8")
|
||||
return "byte" + vec;
|
||||
else if(type == "i16")
|
||||
return "short" + vec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue