Skip to content

Commit 53cd4cc

Browse files
authored
[Helper] Replace weird implicit cast with an explicit cast (#5835)
1 parent 527697c commit 53cd4cc

File tree

1 file changed

+1
-1
lines changed
  • Sofa/framework/Helper/src/sofa/helper/system/thread

1 file changed

+1
-1
lines changed

Sofa/framework/Helper/src/sofa/helper/system/thread/CTime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ ctime_t CTime::getTime()
197197

198198
double CTime::toSecond(const ctime_t t)
199199
{
200-
return 1.0*t/CTime::getTicksPerSec() ;
200+
return static_cast<double>(t) / CTime::getTicksPerSec();
201201
}
202202

203203
} // namespace sofa::helper::system::thread

0 commit comments

Comments
 (0)