Skip to content

Commit dfbd49c

Browse files
authored
Fix compilation errors on all modules (#32)
- Run compile in CI
1 parent 99086a5 commit dfbd49c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before_install:
1414
- sudo apt-get update
1515
- sudo apt-get install -y libuv1-dev
1616
script:
17-
- sbt test
17+
- sbt compile test
1818
cache:
1919
directories:
2020
- $HOME/.sbt

client/curl.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import scala.collection.mutable
44
import scala.scalanative.libc.stdlib._
55
import scala.scalanative.libc.string._
66
import scala.concurrent._
7+
import scala.concurrent.duration._
78
import scala.scalanative.runtime.Boxes
89

910
case class ResponseState(
@@ -213,7 +214,7 @@ object Curl {
213214
1
214215
} else timeout_ms
215216
println("starting timer")
216-
Timer.timeout(time) { () =>
217+
Timer.timeout(time.millis) { () =>
217218
println("in timeout callback")
218219
val running_handles = stackalloc[Int]
219220
multi_socket_action(multi, -1, 0, running_handles)

scalajs-compat/RawTimers.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
package scala.scalajs.js.timers
1414

1515
import scalanative.loop.Timer
16+
import scala.concurrent.duration._
1617

1718
/**
1819
* <span class="badge badge-non-std" style="float: right;">Non-Standard</span>
@@ -35,7 +36,7 @@ object RawTimers {
3536
handler: () => Unit,
3637
interval: Double
3738
): SetTimeoutHandle =
38-
Timer.timeout(interval.toLong)(handler)
39+
Timer.timeout(interval.millis)(handler)
3940

4041
/** Schedule `handler` for repeated execution every `interval`
4142
* milliseconds.
@@ -49,5 +50,5 @@ object RawTimers {
4950
handler: () => Unit,
5051
interval: Double
5152
): SetIntervalHandle =
52-
Timer.repeat(interval.toLong)(handler)
53+
Timer.repeat(interval.millis)(handler)
5354
}

0 commit comments

Comments
 (0)