Skip to content

Commit

Permalink
Fix type inference issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed Jun 26, 2019
1 parent 3a20a47 commit f254eab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rhmodding.tickompiler.gameputter

import java.nio.ByteBuffer
import kotlin.math.roundToLong
import kotlin.math.roundToInt

object GamePutter {

Expand Down Expand Up @@ -63,7 +63,7 @@ object GamePutter {
val bpm = list[0].toFloat()
val beats = list[1].toFloat()
val time = 60*beats/bpm
val timeInt = (time * 32000).roundToLong()
val timeInt = (time * 32000).roundToInt()
result.add(java.lang.Float.floatToIntBits(beats))
result.add(timeInt)
if (index == tempo.size - 2) {
Expand Down

0 comments on commit f254eab

Please sign in to comment.