Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Commit eb67084

Browse files
committed
WifiUtils: Correct order
Signed-off-by: Fung <[email protected]>
1 parent 6d2baec commit eb67084

File tree

1 file changed

+2
-4
lines changed
  • app/src/main/kotlin/moe/feng/scut/autowifi/support

1 file changed

+2
-4
lines changed

app/src/main/kotlin/moe/feng/scut/autowifi/support/WifiUtils.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@ class WifiUtils {
109109
.any { it in '0'..'9' || it in 'A'..'F' || it in 'a'..'f' }
110110
}
111111

112-
private fun convertIpToStr(i: Int): String = (i shr 24 and 0xFF).toString() +
113-
"." + (i shr 16 and 0xFF).toString() +
114-
"." + (i shr 8 and 0xFF).toString() +
115-
"." + (i and 0xFF).toString()
112+
private fun convertIpToStr(i: Int): String = (i and 0xFF).toString() + "." +
113+
(i shr 8 and 0xFF) + "." + (i shr 16 and 0xFF) + "." + (i shr 24 and 0xFF)
116114

117115
}
118116

0 commit comments

Comments
 (0)