mirror of
https://github.com/nlohmann/json.git
synced 2026-03-26 19:02:49 +00:00
Merge pull request #1797 from t-b/fix-integer-truncation
iteration_proxy: Fix integer truncation from std::size_t to int
This commit is contained in:
@@ -13,7 +13,7 @@ namespace nlohmann
|
||||
namespace detail
|
||||
{
|
||||
template<typename string_type>
|
||||
void int_to_string( string_type& target, int value )
|
||||
void int_to_string( string_type& target, std::size_t value )
|
||||
{
|
||||
target = std::to_string(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user