aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-02-27 12:50:53 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-02-27 12:53:15 +0000
commit699672d4dccfb5579dbe48977bda86f6836225a0 (patch)
tree00e0b091a5855c0ef0c9d89bb65a3d368ed92bd7 /gcc
parent652623f7c68594b1825a333bf8e83e87d1c3f523 (diff)
downloadgcc-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