File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
include/boost/json/detail Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,18 @@ int constexpr max_number_chars =
2222 5 ; // unsigned 16-bit exponent
2323
2424BOOST_JSON_DECL
25- unsigned
25+ std:: size_t
2626format_uint64 (
2727 char * dest,
2828 std::uint64_t value) noexcept ;
2929
3030BOOST_JSON_DECL
31- unsigned
31+ std:: size_t
3232format_int64 (
3333 char * dest, int64_t i) noexcept ;
3434
3535BOOST_JSON_DECL
36- unsigned
36+ std:: size_t
3737format_double (
3838 char * dest, double d, bool allow_infinity_and_nan = false ) noexcept ;
3939
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ inline void format_digit( char * dest, unsigned v )
5858 *dest = static_cast <char >( v + ' 0' );
5959}
6060
61- unsigned
61+ std:: size_t
6262format_uint64 (
6363 char * dest,
6464 std::uint64_t v) noexcept
@@ -93,13 +93,13 @@ format_uint64(
9393 format_digit ( p, static_cast <unsigned >(v) );
9494 }
9595
96- unsigned const n = static_cast <unsigned >( buffer + 24 - p );
96+ std:: size_t const n = static_cast <std:: size_t >( buffer + 24 - p );
9797 std::memcpy ( dest, p, n );
9898
9999 return n;
100100}
101101
102- unsigned
102+ std:: size_t
103103format_int64 (
104104 char * dest, int64_t i) noexcept
105105{
@@ -112,7 +112,7 @@ format_int64(
112112 return 1 + format_uint64 (dest, ui);
113113}
114114
115- unsigned
115+ std:: size_t
116116format_double (
117117 char * dest, double d, bool allow_infinity_and_nan) noexcept
118118{
You can’t perform that action at this time.
0 commit comments