Fix wrong endian of boolean values when saving ASF files.

This commit is contained in:
Tsuda Kageyu 2017-02-06 10:06:10 +09:00
parent a5d9e49c49
commit dd4adf94ce

View File

@ -281,10 +281,10 @@ ByteVector ASF::Attribute::render(const String &name, int kind) const
case BoolType:
if(kind == 0) {
data.append(ByteVector::fromUInt(toBool()));
data.append(ByteVector::fromUInt(toBool(), false));
}
else {
data.append(ByteVector::fromShort(toBool()));
data.append(ByteVector::fromShort(toBool(), false));
}
break;