File tree 2 files changed +7
-7
lines changed
include/boost/json/detail
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 =
22
22
5 ; // unsigned 16-bit exponent
23
23
24
24
BOOST_JSON_DECL
25
- unsigned
25
+ std:: size_t
26
26
format_uint64 (
27
27
char * dest,
28
28
std::uint64_t value) noexcept ;
29
29
30
30
BOOST_JSON_DECL
31
- unsigned
31
+ std:: size_t
32
32
format_int64 (
33
33
char * dest, int64_t i) noexcept ;
34
34
35
35
BOOST_JSON_DECL
36
- unsigned
36
+ std:: size_t
37
37
format_double (
38
38
char * dest, double d, bool allow_infinity_and_nan = false ) noexcept ;
39
39
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ inline void format_digit( char * dest, unsigned v )
58
58
*dest = static_cast <char >( v + ' 0' );
59
59
}
60
60
61
- unsigned
61
+ std:: size_t
62
62
format_uint64 (
63
63
char * dest,
64
64
std::uint64_t v) noexcept
@@ -93,13 +93,13 @@ format_uint64(
93
93
format_digit ( p, static_cast <unsigned >(v) );
94
94
}
95
95
96
- unsigned const n = static_cast <unsigned >( buffer + 24 - p );
96
+ std:: size_t const n = static_cast <std:: size_t >( buffer + 24 - p );
97
97
std::memcpy ( dest, p, n );
98
98
99
99
return n;
100
100
}
101
101
102
- unsigned
102
+ std:: size_t
103
103
format_int64 (
104
104
char * dest, int64_t i) noexcept
105
105
{
@@ -112,7 +112,7 @@ format_int64(
112
112
return 1 + format_uint64 (dest, ui);
113
113
}
114
114
115
- unsigned
115
+ std:: size_t
116
116
format_double (
117
117
char * dest, double d, bool allow_infinity_and_nan) noexcept
118
118
{
You can’t perform that action at this time.
0 commit comments