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