Fix an issue with how encoded booleans are written

git-svn-id: https://smali.googlecode.com/svn/trunk@401 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-08-21 07:02:15 +00:00
parent cf483d2e13
commit 6389c5bc6b

View File

@ -79,7 +79,7 @@ public class BooleanEncodedValue extends EncodedValue {
if (out.annotates()) {
out.annotate("value_type=" + ValueType.VALUE_BOOLEAN.name() + ",value=" + Boolean.toString(value));
}
out.writeByte(ValueType.VALUE_BOOLEAN.value | (value?1:0 << 5));
out.writeByte(ValueType.VALUE_BOOLEAN.value | ((value?1:0) << 5));
}
/** {@inheritDoc} */