@@ -1525,8 +1525,8 @@ namespace tiny_utf8
1525
1525
* @param n The index of the code point to get the iterator to
1526
1526
* @return An iterator pointing to the specified code point index
1527
1527
*/
1528
- inline iterator get ( size_type n ) noexcept { return { n , this }; }
1529
- inline const_iterator get ( size_type n ) const noexcept { return { n , this }; }
1528
+ inline iterator get ( size_type n ) noexcept { return { (difference_type) n , this }; }
1529
+ inline const_iterator get ( size_type n ) const noexcept { return { (difference_type) n , this }; }
1530
1530
/* *
1531
1531
* Returns an iterator pointing to the code point at the supplied byte position
1532
1532
*
@@ -1545,8 +1545,8 @@ namespace tiny_utf8
1545
1545
* @param n The index of the code point to get the reverse iterator to
1546
1546
* @return A reverse iterator pointing to the specified code point index
1547
1547
*/
1548
- inline reverse_iterator rget ( size_type n ) noexcept { return { n , this }; }
1549
- inline const_reverse_iterator rget ( size_type n ) const noexcept { return { n , this }; }
1548
+ inline reverse_iterator rget ( size_type n ) noexcept { return { (difference_type) n , this }; }
1549
+ inline const_reverse_iterator rget ( size_type n ) const noexcept { return { (difference_type) n , this }; }
1550
1550
/* *
1551
1551
* Returns a reverse iterator pointing to the code point at the supplied byte position
1552
1552
*
@@ -1555,8 +1555,8 @@ namespace tiny_utf8
1555
1555
* @param n The byte position of the code point to get the reverse iterator to
1556
1556
* @return A reverse iterator pointing to the specified byte position
1557
1557
*/
1558
- inline raw_reverse_iterator raw_rget ( size_type n ) noexcept { return { n , this }; }
1559
- inline raw_const_reverse_iterator raw_rget ( size_type n ) const noexcept { return { n , this }; }
1558
+ inline raw_reverse_iterator raw_rget ( size_type n ) noexcept { return { (difference_type) n , this }; }
1559
+ inline raw_const_reverse_iterator raw_rget ( size_type n ) const noexcept { return { (difference_type) n , this }; }
1560
1560
1561
1561
1562
1562
/* *
0 commit comments