Fix warnings

This commit is contained in:
Victor Zverovich
2019-07-19 10:14:32 +02:00
parent 6a497e1d06
commit 6bcc3fd216
3 changed files with 7 additions and 4 deletions

View File

@@ -271,7 +271,7 @@ To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
ec = 1;
return {};
}
count *= Factor::num;
count *= static_cast<IntermediateRep>(Factor::num);
}
// this can't go wrong, right? den>0 is checked earlier.