diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-02-27 12:50:53 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-02-27 12:53:15 +0000 |
commit | 699672d4dccfb5579dbe48977bda86f6836225a0 (patch) | |
tree | 00e0b091a5855c0ef0c9d89bb65a3d368ed92bd7 /gcc | |
parent | 652623f7c68594b1825a333bf8e83e87d1c3f523 (diff) | |
download | gcc-699672d4dccfb5579dbe48977bda86f6836225a0.zip gcc-699672d4dccfb5579dbe48977bda86f6836225a0.tar.gz gcc-699672d4dccfb5579dbe48977bda86f6836225a0.tar.bz2 |
libstdc++: Fix conversions from date types to integers [PR 99301]
The conversions to integer types are explicit, so need to use the
correct type. Converting to uint32_t only works if that is the same type
as unsigned.
libstdc++-v3/ChangeLog:
PR libstdc++/99301
* include/std/chrono (year_month_day::_M_days_since_epoch()):
Convert chrono::month and chrono::day to unsigned before
converting to uint32_t.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions