lib/android/axml_parser.rb in ruby_apk-0.6.0 vs lib/android/axml_parser.rb in ruby_apk-0.7.0

- old
+ new

@@ -66,11 +66,10 @@ parse_tags @doc end - private # read one word(4byte) as integer # @param [Integer] offset offset from top position. current position is used if ofset is nil # @return [Integer] little endian word value def word(offset=nil) @io.pos = offset unless offset.nil? @@ -161,10 +160,10 @@ when VAL_TYPE_INT_DEC value = val when VAL_TYPE_INT_HEX value = "%#x" % val when VAL_TYPE_INT_BOOLEAN - value = ((val != 0xFFFFFFFF) || (val==1)) ? true : false + value = ((val == 0xFFFFFFFF) || (val==1)) ? true : false else value = "[%#x, flag=%#x]" % [val, flags] end end end