Skip to content

Commit a34d3ce

Browse files
committed
tsutil: Fix int overflow
1 parent d9899ba commit a34d3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsutil/clock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type testClock struct {
2424
// NewTestClock returns a test Clock starting at 1234567890000 millseconds since
2525
// epoch. Each access to Now() increases time by 1 millisecond.
2626
func NewTestClock() Clock {
27-
t := ParseMillis(1234567890000)
27+
t := ParseMillis(int64(1234567890000))
2828
return &testClock{
2929
t: t,
3030
tick: time.Millisecond,

0 commit comments

Comments
 (0)