From 304785f9027e8412d8a4415e5782bfc89d7a80e9 Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 6 Jul 2020 22:10:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/filechooser/utils/ConvertUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }