Skip to content

Commit ca4aecf

Browse files
fix windows build warnings
1 parent 8172406 commit ca4aecf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/framework/TimeSpan.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ namespace System
3030
m_duration = static_cast<double>(ticks);
3131
}
3232

33+
TimeSpan(double duration)
34+
{
35+
m_duration = duration;
36+
}
37+
3338
TimeSpan(int hours,int minutes,int seconds)
3439
{
3540
double t= 0.0;
@@ -88,7 +93,7 @@ namespace System
8893

8994
uint64_t Ticks()
9095
{
91-
return m_duration;
96+
return static_cast<uint64_t>(m_duration);
9297
}
9398

9499
double TotalDays()

0 commit comments

Comments
 (0)