pointless comparison of unsigned integer with zero, fix 2
This commit is contained in:
parent
c6c79a0932
commit
166faf98c1
@ -203,7 +203,7 @@ To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
|
||||
}
|
||||
const auto min1 =
|
||||
(std::numeric_limits<IntermediateRep>::min)() / Factor::num;
|
||||
if (count < min1) {
|
||||
if (std::is_unsigned<IntermediateRep>::value || count < min1) {
|
||||
ec = 1;
|
||||
return {};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user