[Bug libstdc++/113327] std::sleep_for(std::chrono::hours::max()) returns immediately

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 13 00:17:50 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113327

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Converting hours::max() to milliseconds overflows and produces a negative
value.


More information about the Gcc-bugs mailing list