Fix pagination

This commit is contained in:
Koitharu
2021-10-09 15:56:19 +03:00
parent 0a8d677fe8
commit c2222344a2

View File

@@ -35,7 +35,7 @@ fun Float.toIntUp(): Int {
infix fun Int.upBy(step: Int): Int {
val mod = this % step
return if (mod == this) {
return if (mod == 0) {
this
} else {
this - mod + step