@@ -1525,8 +1525,8 @@ namespace tiny_utf8
15251525 * @param n The index of the code point to get the iterator to
15261526 * @return An iterator pointing to the specified code point index
15271527 */
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 }; }
15301530 /* *
15311531 * Returns an iterator pointing to the code point at the supplied byte position
15321532 *
@@ -1545,8 +1545,8 @@ namespace tiny_utf8
15451545 * @param n The index of the code point to get the reverse iterator to
15461546 * @return A reverse iterator pointing to the specified code point index
15471547 */
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 }; }
15501550 /* *
15511551 * Returns a reverse iterator pointing to the code point at the supplied byte position
15521552 *
@@ -1555,8 +1555,8 @@ namespace tiny_utf8
15551555 * @param n The byte position of the code point to get the reverse iterator to
15561556 * @return A reverse iterator pointing to the specified byte position
15571557 */
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 }; }
15601560
15611561
15621562 /* *
0 commit comments