accept i1 types as dlang bool

This commit is contained in:
bcarneal 2021-03-12 10:58:58 -08:00
parent 937c57b835
commit f1f702af36

View file

@ -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;