diff --git a/app/src/main/java/io/legado/app/ui/filechooser/utils/ConvertUtils.kt b/app/src/main/java/io/legado/app/ui/filechooser/utils/ConvertUtils.kt index f07371518..17d2f15e7 100644 --- a/app/src/main/java/io/legado/app/ui/filechooser/utils/ConvertUtils.kt +++ b/app/src/main/java/io/legado/app/ui/filechooser/utils/ConvertUtils.kt @@ -32,10 +32,10 @@ object ConvertUtils { fun toInt(bytes: ByteArray): Int { var result = 0 - var abyte: Byte + var byte: Byte for (i in bytes.indices) { - abyte = bytes[i] - result += (abyte.toInt() and 0xFF).shl(8 * i) + byte = bytes[i] + result += (byte.toInt() and 0xFF).shl(8 * i) } return result }