]> granicus.if.org Git - taglib/commitdiff
Fix wrong endian of boolean values when saving ASF files.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Mon, 6 Feb 2017 01:06:10 +0000 (10:06 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Mon, 6 Feb 2017 01:06:10 +0000 (10:06 +0900)
taglib/asf/asfattribute.cpp

index ec909fe8bacfa0b8a565a52cba8ff1a59956c352..6faf7973b5b8fd3039299b728bf24b0611fe366c 100644 (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;