@@ -1505,7 +1505,7 @@ protected:
1505
1505
}
1506
1506
1507
1507
const char8_t* _Peek = _First1;
1508
- char32_t _Code_point = _Lead_byte;
1508
+ char32_t _Code_point = static_cast<char32_t>( _Lead_byte) ;
1509
1509
do {
1510
1510
const char8_t _By = *++_Peek;
1511
1511
if ((_By & 0b1100'0000u) != 0b1000'0000u) { // out-of-sequence lead byte
@@ -1551,7 +1551,7 @@ protected:
1551
1551
return partial;
1552
1552
}
1553
1553
1554
- char32_t _Code_point = *_First1;
1554
+ char32_t _Code_point = static_cast<char32_t>( *_First1) ;
1555
1555
if (_Code_point < 0x80u) { // encode 1-byte sequence
1556
1556
*_First2 = static_cast<char8_t>(_Code_point);
1557
1557
continue;
@@ -1613,7 +1613,7 @@ protected:
1613
1613
const auto _Old_first1 = _First1;
1614
1614
1615
1615
for (; _First1 != _Last1 && _Count > 0u; ++_First1, --_Count) {
1616
- char32_t _Code_point = *_First1;
1616
+ char32_t _Code_point = static_cast<char32_t>( *_First1) ;
1617
1617
if (_Code_point < 0b1000'0000u) { // single-byte sequence
1618
1618
continue;
1619
1619
}
@@ -1755,7 +1755,7 @@ protected:
1755
1755
1756
1756
char8_t _Lead_byte = *_First1;
1757
1757
if (_Lead_byte < 0b1000'0000u) { // single-byte sequence
1758
- *_First2 = _Lead_byte;
1758
+ *_First2 = static_cast<char32_t>( _Lead_byte) ;
1759
1759
continue;
1760
1760
}
1761
1761
@@ -1782,7 +1782,7 @@ protected:
1782
1782
}
1783
1783
1784
1784
const char8_t* _Peek = _First1;
1785
- char32_t _Code_point = _Lead_byte;
1785
+ char32_t _Code_point = static_cast<char32_t>( _Lead_byte) ;
1786
1786
do {
1787
1787
const char8_t _By = *++_Peek;
1788
1788
if ((_By & 0b1100'0000u) != 0b1000'0000u) { // out-of-sequence lead byte
@@ -1868,7 +1868,7 @@ protected:
1868
1868
const auto _Old_first1 = _First1;
1869
1869
1870
1870
for (; _First1 != _Last1 && _Count > 0u; ++_First1, --_Count) {
1871
- char32_t _Code_point = *_First1;
1871
+ char32_t _Code_point = static_cast<char32_t>( *_First1) ;
1872
1872
if (_Code_point < 0b1000'0000u) { // single-byte sequence
1873
1873
continue;
1874
1874
}
0 commit comments